-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error resolving url: Get "http://127.0.0.1:9222/json/version": dial tcp 127.0.0.1:9222: connect: connection refused 0xc000431560 #53
Comments
This can happen if it can't reach the browser (which is running in a docker container). Could you run |
`2024/04/03 11:59:33 OK 20240325154630_initial_migration.sql (3.38ms) [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
[GIN-debug] GET /graphql --> github.com/semanser/ai-coder/router.graphqlHandler.func4 (5 handlers) |
i've ran CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2024/04/03 12:08:26 Spawning container debian:latest "codel-terminal-1" |
curl: (7) Failed to connect to 127.0.0.1 port 9222 after 0 ms: Couldn't connect to server |
So you're running: Host -> VM -> Docker. I suspect that running |
exactly, VM configured as bridge btw |
What command did you use to run Codel? Did you use |
@robert-fahey Interesting! So apparently the rod container is having issues. I found a couple of similar errors here:
|
|
I do not think that the dbus error has something to do with it, as this is a common warning on headless setups. So this must be a port forwarding problem. As a (really bad) workaround I changed the line in backend/executor/browser.go spawning the browser container to install and run socat, proxying the local port to 0.0.0.0.
This gives me the ability to curl from the host, outside the container. |
When I ask to navigate to some page.
Trying to get content from https://{reducted}/
2024/04/03 10:44:32 failed to process browser: %!w(*fmt.wrapError=&{failed to get content: Error loading page: Error resolving url: Get "http://127.0.0.1:9222/json/version": dial tcp 127.0.0.1:9222: connect: connection refused 0xc000431560})
Running from VM tried in bridge as well.
The text was updated successfully, but these errors were encountered: