-
Notifications
You must be signed in to change notification settings - Fork 654
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
ethstats
plug-in fails with HTTP error 504 if not given full URI
#1337
Comments
This may be due to the fact that I'm actually connection to WSS. EDIT: Although, this seems to be irrelevant:
|
@veox I'm not really sure about the error but just want to point out that the |
@voith Yes, I'm trying now with EDIT: Well, I don't see anything obvious, so I guess the best approach is to run an Perhaps after reviewing the references in issue #1187, to see if this is a known quirk in |
ethstats
plug-inethstats
plug-in invariably fails with error 504
I still think this may be caused by the fact that this endpoint uses SSL. I was testing against local |
Tried to test this with SSL enabled, but it works for me. @veox BTW, if you pass |
Ah! You are correct, missing "api" in the URI was the culprit. :) It now works as expected. For ref (and possible future doc), I'm testing it as: PYTHONWARNINGS='ignore' trinity \
--network-id=3 --sync-mode=light --discv5 --max-peers=NUMBER \
--ethstats \
--ethstats-server-url="wss://ropsten-stats.parity.io/api" \
--ethstats-server-secret="SECRET" \
--ethstats-node-id="veox-trinity-dev-lightclient" \
--ethstats-node-contact="veox" |
ethstats
plug-in invariably fails with error 504ethstats
plug-in fails with HTTP error 504 if not given full URI
I've added suggestions to "how it can be fixed" section in issue description. |
I think second approach is better, as it is more explicit. Will add note about |
Also, I think that we can auto select a default for the URI if the node is running against ropsten/mainnet or really any network ID for which we know the right default URI. |
trinity
version:trinity-v0.1.0-alpha.16-15-g3eb6dc5d
(current master: commit 3eb6dc5)pip freeze
): MISSINGWhat is wrong?
PR #1336 squash-merged work from PR #1216, implementing the
ethstats
plug-in.I've tried it with an actual "secret token" I have for
wss://ropsten-stats.parity.io/
, and there's always a504
when trying to connect via WebSocket:EDIT: As a sanity check, I've tried with my previous setup of
jsonrpcproxy
+eth-net-intelligence-api
, and it still works. So the URL/secret are correct.How can it be fixed
See comment.
Either:
api
to the URL in the plug-in ourselves; orand rename "URL" to "URI".The text was updated successfully, but these errors were encountered: