HYCHAIN / guardian-node-software

The command line interface for windows, mac and linux to run HYCHAIN's guardian node software. Guardian node keys can be purchased at https://node.hychain.com - Learn more about Guardian Nodes here: https://docs.hychain.com/docs/how-do-i-operate-a-node
https://hychain.com
10 stars 0 forks source link

invalid response body #10

Open angyts opened 4 months ago

angyts commented 4 months ago

I got these error logs. These happened many times, over multiple days, during random times. Perhaps, the devs can open source the decentralised blockchain software so we can help with the error handling in this case, perhaps try to debounce and retry the connection, and tell the user its a connection error. Or perhaps there could be a better way than relying on a single point of place to fetch these tasks like from a single aws server/S3 bucket.

[15:28:23.204] INFO: Number of node keys to assert for challenge 1188: 1
node:internal/process/task_queues:95
    runMicrotasks();
    ^

FetchError: Invalid response body while trying to fetch https://guardian-public-data.s3.amazonaws.com/hychain/0x826425e0225edc70693c33ec9068def18ec4c75baca78e4b2e9e3d6f06533bff: aborted
    at consumeBody (/snapshot/esbuild/guardian-cli.js)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _Response.text (/snapshot/esbuild/guardian-cli.js)
    at async validateChallenge (/snapshot/esbuild/guardian-cli.js)
    at async validateAndSignAssertionForChallenge (/snapshot/esbuild/guardian-cli.js)
    at async runGuardian (/snapshot/esbuild/guardian-cli.js)
    at async _Command.<anonymous> (/snapshot/esbuild/guardian-cli.js) {
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  erroredSysCall: undefined
}

Node.js v18.5.0