omnia-network / ic-websocket-gateway

WebSocket gateway for the IC
https://status.icws.io
MIT License
24 stars 2 forks source link

may I need setup some varls?when I run by docker image from docker hub #34

Closed johnxiaohe closed 4 months ago

johnxiaohe commented 4 months ago

thread 'main' panicked at src/ic-websocket-gateway/src/manager.rs:27:14: could not get new agent: TransportError(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Ipv4(127.0.0.1)), port: Some(4943), path: "/api/v2/status", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })) })

ilbertt commented 4 months ago

I think you have to set the --ic-network-url properly:

docker run -p 8080:8080 omniadevs/ic-websocket-gateway --ic-network-url http://host.docker.internal:4943

This way, Docker resolves the IP to your host machine, where the dfx local replica is supposed to be running.

@johnxiaohe let me know if it works!

ilbertt commented 4 months ago

@johnxiaohe this issue has been closed automatically after merging an update to the docker guide in the README.

Feel free to reopen it if you still have any issues.

johnxiaohe commented 4 months ago

I think you have to set the --ic-network-url properly:

docker run -p 8080:8080 omniadevs/ic-websocket-gateway --ic-network-url http://host.docker.internal:4943

This way, Docker resolves the IP to your host machine, where the dfx local replica is supposed to be running.

@johnxiaohe let me know if it works!

Work very health!!! Thanks!!!