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

API: Blockbook websocket failed to reconnect #899

Closed
kaladinlight opened this issue Dec 7, 2023 · 1 comment · Fixed by #908
Closed

API: Blockbook websocket failed to reconnect #899

kaladinlight opened this issue Dec 7, 2023 · 1 comment · Fixed by #908

Comments

@kaladinlight
Copy link
Collaborator

Overview

Recent increase in restarts due to the api being unable to reconnect with the blockbook websocket. I am guessing this is more related to our reconnect logic than and actual blockbook problem...

References and additional details

{"error":{},"fn":"ws.onerror","message":"websocket error","timestamp":"2023-12-07T10:33:51.123Z","namespace":"unchained:blockbook","status":"error"}
{"code":1006,"reason":"","fn":"ws.close","message":"websocket closed","timestamp":"2023-12-07T10:33:51.123Z","namespace":"unchained:blockbook","status":"error"}
{"error":{},"fn":"ws.onerror","message":"websocket error","timestamp":"2023-12-07T10:33:56.123Z","namespace":"unchained:blockbook","status":"error"}
{"code":1006,"reason":"","fn":"ws.close","message":"websocket closed","timestamp":"2023-12-07T10:33:56.123Z","namespace":"unchained:blockbook","status":"error"}
/app/node/packages/blockbook/dist/websocket.js:24
                throw new Error('failed to reconnect');
                ^

Error: failed to reconnect
    at WebsocketClient.initialize (/app/node/packages/blockbook/dist/websocket.js:24:23)
    at WebsocketClient.close (/app/node/packages/blockbook/dist/websocket.js:43:14)
    at socket.onclose (/app/node/packages/blockbook/dist/websocket.js:35:18)
    at WebSocket.onClose (/app/node/packages/blockbook/node_modules/ws/lib/event-target.js:210:18)
    at WebSocket.emit (node:events:513:28)
    at WebSocket.emitClose (/app/node/packages/blockbook/node_modules/ws/lib/websocket.js:248:12)
    at emitErrorAndClose (/app/node/packages/blockbook/node_modules/ws/lib/websocket.js:994:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Acceptance Criteria

  • No more restarts due to websocket reconnect

Need By Date

No response

Screenshots/Mockups

No response

Estimated effort

No response

@kaladinlight kaladinlight changed the title Blockbook: Websocket failed to reconnect API: Blockbook websocket failed to reconnect Dec 7, 2023
@kaladinlight kaladinlight linked a pull request Dec 14, 2023 that will close this issue
@kaladinlight
Copy link
Collaborator Author

Closed by #908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant