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

Getting disconnected before response #120

Open
binary-ex-machina opened this issue Mar 29, 2018 · 1 comment
Open

Getting disconnected before response #120

binary-ex-machina opened this issue Mar 29, 2018 · 1 comment

Comments

@binary-ex-machina
Copy link

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.

@lingoyak
Copy link

lingoyak commented Nov 8, 2019

How did you manage to solve this? i am missing important trades due to this issue.

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

No branches or pull requests

2 participants