Open xuhcc opened 5 years ago
@xuhcc I think usually the ws endpoint is on /ws
(not 100% sure though), so you might have to use ws://127.0.0.1:8546/ws
.
Otherwise, it looks like there might be some CORS settings to turn on: https://ethereum.stackexchange.com/a/11619
Hello @sohkai
I tried to use ws://127.0.0.1:8546/ws
and run geth with --wsorigins="*"
flag, but still no connection (and no errors in console).
Yes, wscat works:
$ wscat --connect ws://127.0.0.1:8546/
connected (press CTRL+C to quit)
> {"id": 1, "method": "eth_syncing", "params": []}
< {"jsonrpc":"2.0","id":1,"result":false}
It appears to work in Chromium, so only Firefox is affected.
Odd; thanks for testing!
Which version of geth
are you using?
v1.9.3-stable-cfbb969d/linux-amd64/go1.13
Firefox disallows insecure websocket connections when website uses https:
https://stackoverflow.com/questions/11768221/firefox-websocket-security-issue
The solution was to set network.websocket.allowInsecureFromHTTPS
setting to true
in about:config
. Or just run aragon client locally.
Thanks for figuring this out @xuhcc! We should turn this into a support FAQ :).
Describe the bug
In network preferences, I can't set ethereum node url to my local geth node running under with
ws
(rather thanwss
).Firefox does not allow going from
https
tows
.Mainnet or testnet?
mainnet
Organization
Any organization.
https://mainnet.aragon.org/#/?preferences=/network
To Reproduce
I'm running a geth node with the following command:
On Aragon portal:
ws://127.0.0.1:8546
.No trace in JS console.
Expected behavior
Web UI should successfully connect to local node.