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

Notifier subscription crashes on lost connection to infura node and does not recover. #53

Closed
jack0son opened this issue Mar 10, 2020 · 0 comments
Labels
bug Something isn't working pkg:bot

Comments

@jack0son
Copy link
Owner

The failed WS connection also causes a large dump of logs from what appears to be the underlying unix socket.

Tue, 03 Mar 2020 06:06:54 GMT websocket:connection 3/3/2020, 6:06:44 AM - 1 - ||| Socket method called:  destroy
Subscription crash
{ type: 'subscribe' }
anfzr8-mtw05w-138x7hn-1wkufwo://woken_contract: The following error was raised when processing message { type: 'subscribe' }:
Error: CONNECTION ERROR: Couldn't connect to node on WS.
    at Object.InvalidConnection (/usr/src/app/@woke/lib/node_modules/web3-core-helpers/src/errors.js:35:16)
    at WebsocketProvider._timeout (/usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:255:48)
    at W3CWebSocket.connection.onclose (/usr/src/app/@woke/lib/node_modules/web3-providers-ws/src/index.js:155:15)
    at W3CWebSocket._dispatchEvent [as dispatchEvent] (/usr/src/app/@woke/lib/node_modules/yaeti/lib/EventTarget.js:107:17)
    at W3CWebSocket.onClose (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:228:10)
    at WebSocketConnection.<anonymous> (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/W3CWebSocket.js:201:17)
    at WebSocketConnection.emit (events.js:198:13)
    at WebSocketConnection.handleSocketClose (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:389:14)
    at TLSSocket.emit (events.js:203:15)
    at TLSSocket.socket.emit (/usr/src/app/@woke/lib/node_modules/@web3-js/websocket/lib/WebSocketConnection.js:875:28)
    at _handle.close (net.js:607:12)
    at TCP.done (_tls_wrap.js:388:7)
Terminating faulted actor
anfzr8-mtw05w-138x7hn-1wkufwo://woken_contract/_sub-0-WokeToken-Tx/_watchdog: The following error was raised when processing message { type: 'perform',
  target:
   ActorReference {
     path:
      ActorPath { system: 'anfzr8-mtw05w-138x7hn-1wkufwo', parts: [Array] },
     name: '_sub-0-WokeToken-Tx',
     parent:
      ActorReference {
        path: [ActorPath],
        name: 'woken_contract',
        parent: [ActorSystemReference],
        system: [Object],
        type: 'actor' },
     system: { name: 'anfzr8-mtw05w-138x7hn-1wkufwo' },
     type: 'actor' },
  period: 300000,
  action: 'subscribe',
  args: undefined }:
Error: Query Timeout
    at Timeout.setTimeout [as _onTimeout] (/usr/src/app/@woke/bot/node_modules/nact/lib/actor.js:105:62)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
Terminating faulted actor
@jack0son jack0son added bug Something isn't working pkg:bot labels Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:bot
Projects
None yet
Development

No branches or pull requests

1 participant