Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Getting disconnected before response #120

@binary-ex-machina

Description

@binary-ex-machina

Working on a NodeJs app to use the LiveAPI and after some hours placing trades, i got this message.

{ {"message":"Websocket disconnected before response received.","stack":[{"file":"/Users/exmachina/Github/binaryapp/node_modules/binary-live-api/lib/binary-live-api.js","column":37,"line":2680,"functionName":null},{"file":null,"column":null,"line":null,"functionName":"forEach"},{"file":"/Users/exmachina/Github/binaryapp/node_modules/binary-live-api/lib/binary-live-api.js","column":46,"line":2679,"functionName":"connect"},{"file":"/Users/exmachina/Github/binaryapp/node_modules/binary-live-api/lib/binary-live-api.js","column":31,"line":2693,"functionName":"socket.onclose"},{"file":"/Users/exmachina/Github/binaryapp/node_modules/ws/lib/WebSocket.js","column":14,"line":446,"functionName":"onClose"},{"file":"events.js","column":13,"line":125,"functionName":"emitTwo"},{"file":"events.js","column":7,"line":213,"functionName":"emit"},{"file":"/Users/exmachina/Github/binaryapp/node_modules/ws/lib/WebSocket.js","column":8,"line":950,"functionName":"cleanupWebsocketResources"},{"file":"events.js","column":13,"line":115,"functionName":"emitOne"},{"file":"events.js","column":7,"line":210,"functionName":"emit"},{"file":"internal/streams/destroy.js","column":8,"line":64,"functionName":"emitErrorNT"},{"file":"internal/process/next_tick.js","column":11,"line":138,"functionName":"_combinedTickCallback"},{"file":"internal/process/next_tick.js","column":9,"line":180,"functionName":"_tickCallback"}]} name: 'DisconnectError' }

Can someone help me avoid this? Happen every day at least 3 times. I'm only subscribed to balance and OpenContracts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions