scratchrealm / kachery-resource

Kachery resource
0 stars 0 forks source link

Error after npx command runs for a while #6

Open lfrank opened 1 year ago

lfrank commented 1 year ago

Leaving the npx command to start the resource daemon running for a while eventually leads to the following:

Connecting to https://kachery-resource-proxy.herokuapp.com
Connected
Connection acknowledged by proxy server

Resource URL: https://kachery-resource-proxy.herokuapp.com/r/franklab.default

Websocket closed.
Disconnected. Will try again in 30 seconds.
Connecting to https://kachery-resource-proxy.herokuapp.com
Connected
Connection acknowledged by proxy server

Resource URL: https://kachery-resource-proxy.herokuapp.com/r/franklab.default

Websocket closed.
Disconnected. Will try again in 30 seconds.
Connecting to https://kachery-resource-proxy.herokuapp.com
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: socket hang up
    at connResetException (node:internal/errors:705:14)
    at TLSSocket.socketOnEnd (node:_http_client:518:23)
    at TLSSocket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (/home/loren/.npm/_npx/ec1da2ed9351c0ff/node_modules/ws/lib/websocket.js:1008:13)
    at ClientRequest.<anonymous> (/home/loren/.npm/_npx/ec1da2ed9351c0ff/node_modules/ws/lib/websocket.js:856:5)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketOnEnd (node:_http_client:518:9)
    at TLSSocket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONNRESET'
}
magland commented 1 year ago

@lfrank I believe this should be resolved now. Please restart using the npx command.