This document contains standard error scenarios and how to resolve them quickly.
- Symptom: The server fails to start and exits with:
OSError: [Errno 48] Address already in use(typically for port8000,8100, or9222). - Cause: Another instance of the API server or a background flow-agent process is already running and occupying the port.
- Resolution:
Run the following commands in your terminal to find and kill the process:
# Clear API server port (8000) kill -9 $(lsof -t -i:8000) 2>/dev/null || true # Clear Extension bridge HTTP callback port (8100) kill -9 $(lsof -t -i:8100) 2>/dev/null || true # Clear Extension bridge WebSocket port (9222) kill -9 $(lsof -t -i:9222) 2>/dev/null || true
- Symptom: Step
Uploading Video to Flowfails with Status Code500and the server console prints:RuntimeError: curl failed: ... - Cause: Your terminal session has sandbox/proxy environment variables active (
http_proxy,https_proxy,HTTP_PROXY, orHTTPS_PROXYmight be set by the AI agent sandbox). This causescurlto route all Google Cloud Storage uploads through a proxy that blocks the connection. - Resolution:
Clear the proxy variables in your terminal window before starting the server and running the test script:
(Make sure to also run
# 1. Unset the proxy variables unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY # 2. Restart the API server in this terminal venv/bin/python -m cli.api --port 8000
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXYin your testing/client terminal window as well).
- Symptom:
/healthreturnshas_flow_key: falseand generation calls return:"Google Flow extension is not connected or unauthorized. Make sure Google Flow tab is open in Chrome." - Cause: The Extension Bridge WS is connected, but the Chrome extension is unable to capture the auth token (
flowKey) because Google Flow is either not open, has gone idle, or your Google account has logged out. - Resolution:
- Open Chrome.
- Make sure you are logged into your Google account at labs.google/fx/tools/flow.
- Reload the page. The extension icon in your extension bar should show a green indicator.
- Once logged in, the extension will automatically push the token to the server and heal the state.
- Symptom: Request fails after 90 seconds with
TIMEOUT. - Cause: Google Flow took too long to respond, or there is an active reCAPTCHA challenge popped up on your Chrome browser that requires manual verification.
- Resolution:
- Open Chrome and inspect the Google Flow tab.
- If a reCAPTCHA prompt is present, solve it.
- Reload the tab to refresh the connection, wait 5 seconds, and try your request again.
- Symptom: Running server or test script returns:
zsh: no such file or directory: venv/bin/pythonor similar file errors. - Cause: The command is run from the parent workspace folder (
N8N-Agent) instead of the clonedflow-agentproject folder where the virtual environment (venv) resides. - Resolution:
Always change your directory to the
flow-agentfolder before running commands, or use the absolute paths:# Go to the correct directory first cd /path/to/flow-agent # Then run the command venv/bin/python -m cli.api --port 8000