Skip to content
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: Invalid JSON RPC response #17

Open
murilobast opened this issue Apr 29, 2018 · 2 comments
Open

Error: Invalid JSON RPC response #17

murilobast opened this issue Apr 29, 2018 · 2 comments

Comments

@murilobast
Copy link

When I try to run tokenpool on my vps I get this error:

UnhandledPromiseRejectionWarning: Error: Invalid JSON RPC response: ""

It looks like it isn't getting a valid response from mainnet on web3

@murilobast
Copy link
Author

Ok, just got why I am getting this error.
I need an RPC server to connect but the question now is:
Can I use a public RPC like "https://api.myetherapi.com/eth" or do I need to setup a private one?

@roy33333
Copy link

I got the same errors.
Can anyone help me?
Here is message.

Update Vardiff
checkBatchPaymentsStatus
(node:2583) UnhandledPromiseRejectionWarning: Error: Invalid JSON RPC response: ""
at Object.InvalidResponse (/home/user/tokenpool/node_modules/web3/node_modules/web3-core-helpers/src/errors.js:42:16)
at XMLHttpRequest.request.onreadystatechange (/home/user/tokenpool/node_modules/web3/node_modules/web3-providers-http/src/index.js:73:32)
at XMLHttpRequestEventTarget.dispatchEvent (/home/user/tokenpool/node_modules/xhr2/lib/xhr2.js:64:18)
at XMLHttpRequest._setReadyState (/home/user/tokenpool/node_modules/xhr2/lib/xhr2.js:354:12)
at XMLHttpRequest._onHttpRequestError (/home/user/tokenpool/node_modules/xhr2/lib/xhr2.js:544:12)
at ClientRequest. (/home/user/tokenpool/node_modules/xhr2/lib/xhr2.js:414:24)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketErrorListener (_http_client.js:401:9)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:66:8)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
(node:2583) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2583) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
done w for each
listening on JSONRPC server localhost:8080
monitor mined solutions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants