Closed antho1404 closed 5 years ago
even my calls are rejected, this is not only the polling.
service | error in preparePublishServiceVersion Error: Invalid JSON RPC response: ""
service | at Object.InvalidResponse (/app/node_modules/web3-core-helpers/src/errors.js:42:16)
service | at XMLHttpRequest.request.onreadystatechange (/app/node_modules/web3-providers-http/src/index.js:92:32)
Might be related to https://github.com/INFURA/infura/issues/58 Infura is displaying some information
The percentage is really close to 100% but without any explanation. The problem is still unclear but we might have some solution to at least improve it if we don't find the source of the problem:
I let the core runs on my macbook since yesterday with multiple change of location (so no more wifi).
This morning, the logs of the marketplace was showing the Error: Invalid JSON RPC response: ""
, I tried to execute the task getService
but also get the Error: Invalid JSON RPC response: ""
, tried a second times and it returns the correct result 👍
The listener of new block also reconnect just after the second attempt to execute a task.
I think I was able to reproduce the problem in a shorter time:
new block XXXX
./dev-cli service execute marketplace --task getService --data sid=com.mesg.bitcoin
. Either the command wait forever or get {"message":"Invalid JSON RPC response: \"\""}
.new block XXX
I didn't find a specific way to reproduce this yet, maybe when my computer goes from sleep to awake but it happened many time.
Once this error happens, then I have it non-stop and the marketplace service becomes useless