docker compose psExpected output: All services should show "Up" or "running"
The service is named agents_backend_server (not backend):
docker compose logs agents_backend_server --tail=200Or follow logs in real-time:
docker compose logs agents_backend_server -fdocker compose logs agents_backend_server --tail=500 2>&1 | grep -iE "error|exception|failed|traceback"docker compose exec agents_backend_redis redis-cli pingExpected: PONG
curl -s http://localhost:8000/docs | head -20curl -s -X POST "http://localhost:8000/api/v1/auth/login" \
-H "Content-Type: application/json" \
-d '{"username": "acobapaul", "password": "YOUR_PASSWORD"}' | python3 -m json.toolSave the access_token from the response for next steps.
curl -s -X GET "http://localhost:8000/agent/chat-sessions" \
-H "Authorization: Bearer TOKEN" | python3 -m json.toolcurl -s -X POST "http://localhost:8000/agent/chat-sessions" \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Debug Test", "agent_type": "chat"}' | python3 -m json.toolcurl -s -X POST "http://localhost:8000/agent/chat/generate-upload-url" \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{"file_name": "test.txt", "content_type": "text/plain", "file_size": 100}' | python3 -m json.toolOpen browser DevTools (F12) → Network → WS tab, then try to connect in Agent mode.
Look for:
- Connection established? (status 101)
- Any error messages in the WebSocket frames
join_sessionevent sent?- Response received?
After running the curl commands above, check Supabase:
-- Check if new sessions were created
SELECT uuid, user_id, name, status, created_time
FROM agent_chat_sessions
WHERE user_id = 20
ORDER BY created_time DESC;
-- Check last 10 sessions regardless of user
SELECT uuid, user_id, name, status, created_time
FROM agent_chat_sessions
ORDER BY created_time DESC
LIMIT 10;# Set your password
export PASSWORD="YOUR_PASSWORD"
# Login and save token
TOKEN=$(curl -s -X POST "http://localhost:8000/api/v1/auth/login" \
-H "Content-Type: application/json" \
-d "{\"username\": \"acobapaul\", \"password\": \"$PASSWORD\"}" \
| python3 -c "import sys,json; print(json.load(sys.stdin).get('data',{}).get('access_token',''))")
echo "Token: $TOKEN"
# Test sessions endpoint
echo "=== List Sessions ==="
curl -s -X GET "http://localhost:8000/agent/chat-sessions" \
-H "Authorization: Bearer $TOKEN" | python3 -m json.tool
# Create session
echo "=== Create Session ==="
curl -s -X POST "http://localhost:8000/agent/chat-sessions" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Debug Test", "agent_type": "chat"}' | python3 -m json.tool
# Test file upload
echo "=== File Upload ==="
curl -s -X POST "http://localhost:8000/agent/chat/generate-upload-url" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"file_name": "test.txt", "content_type": "text/plain", "file_size": 100}' | python3 -m json.toolMake sure you're in the correct directory containing docker-compose.yml
- Check username/password are correct
- Check backend is running:
curl http://localhost:8000/docs
- The endpoint path is
/agent/chat-sessions(not/agents/with an 's') - Check Authorization header is included
- This was a bug I fixed - make sure you rebuilt the container
- Check:
docker compose build agents_backend_server --no-cache