Auto closing of web socket.
-
Hi Team,
I am constantly facing issue in which smart_api socket automatically gets closed after around 10 mins.
Connection is getting established successfully , responses are correct but getting auto closed after some time.Below are some keys from auto close log:
_eventsCount: 4,
_maxListeners: undefined,
_binaryType: 'nodebuffer',
_closeCode: 1000,
_closeFrameReceived: true,
_closeFrameSent: true,
_closeMessage: '',
_closeTimer: Timeout {
_idleTimeout: -1,
_idlePrev: null,
_idleNext: null,
_idleStart: 578336,
_onTimeout: null,
_timerArgs: undefined,
_repeat: null,
_destroyed: true,
[Symbol(refed)]: true,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 4837,
[Symbol(triggerId)]: 159
},
authorizationError: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', -
@admin Thanks , it is working fine now.
-
Hi @mihirk , please reinstall NodeJS package and try again
-
@bhaveshjain @admin Can you please provide update on above.
I checked it today, it is still getting closed after 5 min. -
-
Hi @mihirk ,
I am getting similar error:
node_modules/smartapi-javascript/lib/websocket.js:52 arg1:CloseEvent {target: WebSocket, type: 'close', wasClean: true, reason: '', code: 1000} code:1000 reason:'' target:WebSocket {_events: {…}, _eventsCount: 4, _maxListeners: undefined, _binaryType: 'nodebuffer', _closeCode: 1000} _binaryType:'nodebuffer' _bufferedAmount:0 _closeCode:1000 _closeFrameReceived:true _closeFrameSent:true _closeMessage:'' ... ... ...
@bhaveshjain : Request you to please check.
-vishant
-
@bhaveshjain Can you please look into it.