f-o-a-m / purescript-web3

a purescript library for the web3 api
Apache License 2.0
127 stars 24 forks source link

Purescript 14 #155

Closed srghma closed 2 years ago

srghma commented 2 years ago

Includes:

but there is an error

$ drmaci && docker run -d -p 8545:8545 -e ACCOUNTS_TO_CREATE=10 foamspace/cliquebait:v1.9.12 && timeout 22 sh -c 'until nc -z $0 $1; do sleep 1; done' localhost 8545 && sleep 6 && npm -s test
........

Filters
........
  ✗ Case [Past, ∞] With Trail:

  Error in forked web3 process (RemoteError "Error: [ethjs-provider-http] Invalid JSON RPC response from provider\n    host: http://localhost:8545\n    response:  \"\"\n    responseURL: undefined\n    status: 0\n    statusText: \n  \n    at invalidResponseError (/home/srghma/projects/purescript-web3/node_modules/ethjs-provider-http/lib/index.js:43:23)\n    at XMLHttpRequest.request.onreadystatechange (/home/srghma/projects/purescript-web3/node_modules/ethjs-provider-http/lib/index.js:88:17)\n    at XMLHttpRequestEventTarget.dispatchEvent (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:64:18)\n    at XMLHttpRequest._setReadyState (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:353:12)\n    at XMLHttpRequest._onHttpRequestError (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:542:12)\n    at ClientRequest.<anonymous> (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:413:24)\n    at ClientRequest.emit (node:events:365:28)\n    at Socket.socketErrorListener (node:_http_client:447:9)\n    at Socket.emit (node:events:365:28)\n    at emitErrorNT (node:internal/streams/destroy:193:8)")

On v1.9.14

  ✗ Case [Past, ∞] No Trail:

  Error in forked web3 process (RemoteError "Error: [ethjs-provider-http] Invalid JSON RPC response from provider\n    host: http://localhost:8545\n    response:  \"\"\n    responseURL: undefined\n    status: 0\n    statusText: \n  \n    at invalidResponseError (/home/srghma/projects/purescript-web3/node_modules/ethjs-provider-http/lib/index.js:43:23)\n    at XMLHttpRequest.request.onreadystatechange (/home/srghma/projects/purescript-web3/node_modules/ethjs-provider-http/lib/index.js:88:17)\n    at XMLHttpRequestEventTarget.dispatchEvent (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:64:18)\n    at XMLHttpRequest._setReadyState (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:353:12)\n    at XMLHttpRequest._onHttpRequestError (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:542:12)\n    at ClientRequest.<anonymous> (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:413:24)\n    at ClientRequest.emit (node:events:365:28)\n    at Socket.socketErrorListener (node:_http_client:447:9)\n    at Socket.emit (node:events:365:28)\n    at emitErrorNT (node:internal/streams/destroy:193:8)")
  ✗ Case [Past, ∞] With Trail:

  Error in forked web3 process (RemoteError "Error: [ethjs-provider-http] Invalid JSON RPC response from provider\n    host: http://localhost:8545\n    response:  \"\"\n    responseURL: undefined\n    status: 0\n    statusText: \n  \n    at invalidResponseError (/home/srghma/projects/purescript-web3/node_modules/ethjs-provider-http/lib/index.js:43:23)\n    at XMLHttpRequest.request.onreadystatechange (/home/srghma/projects/purescript-web3/node_modules/ethjs-provider-http/lib/index.js:88:17)\n    at XMLHttpRequestEventTarget.dispatchEvent (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:64:18)\n    at XMLHttpRequest._setReadyState (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:353:12)\n    at XMLHttpRequest._onHttpRequestError (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:542:12)\n    at ClientRequest.<anonymous> (/home/srghma/projects/purescript-web3/node_modules/xhr2/lib/xhr2.js:413:24)\n    at ClientRequest.emit (node:events:365:28)\n    at Socket.socketErrorListener (node:_http_client:447:9)\n    at Socket.emit (node:events:365:28)\n    at emitErrorNT (node:internal/streams/destroy:193:8)")

https://pastebin.com/QvhJBTVN

martyall commented 2 years ago

Please see this comment

martyall commented 2 years ago

Closing in favor of #154