nikivdev/code · error

Failed to fetch task logs: {}

Error message

Failed to fetch task logs: {}

What it means

Error "Failed to fetch task logs: {}" thrown in nikivdev/code.

Source

Thrown at src/processes.rs:646

                            if code == 0 {
                                println!("\n✓ Task completed successfully");
                            } else {
                                println!("\n✗ Task failed with exit code {}", code);
                            }
                        }
                        break;
                    }
                }
                Ok(r) if r.status().as_u16() == 404 => {
                    // Task not found yet, wait
                    thread::sleep(Duration::from_millis(200));
                    continue;
                }
                Ok(r) => {
                    bail!("Hub returned error: {}", r.status());
                }
                Err(e) => {
                    bail!("Failed to fetch task logs: {}", e);
                }
            }

            thread::sleep(Duration::from_millis(500));
        }
    } else {
        // One-shot fetch
        let resp = client
            .get(&url)
            .send()
            .context("failed to fetch task logs")?;

        if resp.status().as_u16() == 404 {
            println!(
                "Task '{}' not found yet (queued). Streaming logs...",
                task_id
            );
            return show_hub_task_logs(task_id, true);

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/processes.rs:646 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/74846436f9c58293. Report an issue: GitHub.