Closed EvoSems closed 3 years ago
Hi.
The error is basically saying you can't connect to wss:// api.orbitbhyve.com/v1/events. Can you ping api.orbitbhyve.com?
On Wed, Sep 8, 2021 at 6:55 AM EvoSems @.***> wrote:
Hi Mate. not sure what's causing the error. was working fine for a long time. any pointers? many thanks
[B-Hyve 4 Irrigation] WebSocket Error ErrorEvent { target: ReconnectingWebSocket { _listeners: { error: [], message: [], open: [], close: [] }, _retryCount: 0, _shouldReconnect: true, _connectLock: false, _binaryType: 'blob', _closeCalled: false, _messageQueue: [], onclose: [Function (anonymous)], onerror: [Function (anonymous)], onmessage: [Function (anonymous)], onopen: [Function (anonymous)], _handleOpen: [Function (anonymous)], _handleMessage: [Function (anonymous)], _handleError: [Function (anonymous)], _handleClose: [Function (anonymous)], _url: 'wss://api.orbitbhyve.com/v1/events', _protocols: [], _options: { WebSocket: [Function], connectionTimeout: 10000, maxReconnectionDelay: 64000, minReconnectionDelay: 2000, reconnectionDelayGrowFactor: 2 }, send: [Function (anonymous)], _ws: WebSocket { _events: [Object: null prototype] {}, _eventsCount: 0, _maxListeners: undefined, _binaryType: 'nodebuffer', _closeCode: 1006, _closeFrameReceived: false, _closeFrameSent: false, _closeMessage: '', _closeTimer: null, _extensions: {}, _protocol: '', _readyState: 2, _receiver: null, _sender: null, _socket: null, _bufferedAmount: 0, _isServer: false, _redirects: 0, _url: 'wss://api.orbitbhyve.com/v1/events', _req: [ClientRequest],
}, _connectTimeout: Timeout { _idleTimeout: -1, _idlePrev: null, _idleNext: null, _idleStart: 44800, _onTimeout: null, _timerArgs: undefined, _repeat: null, _destroyed: true,
} }, type: 'error', message: 'TIMEOUT', error: Error: TIMEOUT at ReconnectingWebSocket._handleTimeout (/usr/local/lib/node_modules/homebridge-platform-orbit/node_modules/reconnecting-websocket/dist/reconnecting-websocket-cjs.js:529:42) at Timeout. (/usr/local/lib/node_modules/homebridge-platform-orbit/node_modules/reconnecting-websocket/dist/reconnecting-websocket-cjs.js:524:75) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MortJC/homebridge-platform-orbit/issues/38, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN5E4TXPILEX7W7FKE546CTUAZ327ANCNFSM5DTFP6SA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
How to try to reconnect after timeout? My server was down for a few minutes and then it came back again, but my websocket client just crashed after timeout.
It should auto reconnect.
Please provide a debug log.
On Sun, Jun 12, 2022 at 1:30 AM Renan Coelho @.***> wrote:
How to try to reconnect after timeout? My server was down for a few minutes and then it came back again, but my websocket client just crashed after timeout.
— Reply to this email directly, view it on GitHub https://github.com/MortJC/homebridge-platform-orbit/issues/38#issuecomment-1152951483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN5E4TUTBBPM2BFTHLR2KELVOSWJNANCNFSM5DTFP6SA . You are receiving this because you modified the open/close state.Message ID: @.***>
Hi Mate. not sure what's causing the error. was working fine for a long time. any pointers? many thanks
[B-Hyve 4 Irrigation] WebSocket Error ErrorEvent { target: ReconnectingWebSocket { _listeners: { error: [], message: [], open: [], close: [] }, _retryCount: 0, _shouldReconnect: true, _connectLock: false, _binaryType: 'blob', _closeCalled: false, _messageQueue: [], onclose: [Function (anonymous)], onerror: [Function (anonymous)], onmessage: [Function (anonymous)], onopen: [Function (anonymous)], _handleOpen: [Function (anonymous)], _handleMessage: [Function (anonymous)], _handleError: [Function (anonymous)], _handleClose: [Function (anonymous)], _url: 'wss://api.orbitbhyve.com/v1/events', _protocols: [], _options: { WebSocket: [Function], connectionTimeout: 10000, maxReconnectionDelay: 64000, minReconnectionDelay: 2000, reconnectionDelayGrowFactor: 2 }, send: [Function (anonymous)], _ws: WebSocket { _events: [Object: null prototype] {}, _eventsCount: 0, _maxListeners: undefined, _binaryType: 'nodebuffer', _closeCode: 1006, _closeFrameReceived: false, _closeFrameSent: false, _closeMessage: '', _closeTimer: null, _extensions: {}, _protocol: '', _readyState: 2, _receiver: null, _sender: null, _socket: null, _bufferedAmount: 0, _isServer: false, _redirects: 0, _url: 'wss://api.orbitbhyve.com/v1/events', _req: [ClientRequest],
}, type: 'error', message: 'TIMEOUT', error: Error: TIMEOUT at ReconnectingWebSocket._handleTimeout (/usr/local/lib/node_modules/homebridge-platform-orbit/node_modules/reconnecting-websocket/dist/reconnecting-websocket-cjs.js:529:42) at Timeout. (/usr/local/lib/node_modules/homebridge-platform-orbit/node_modules/reconnecting-websocket/dist/reconnecting-websocket-cjs.js:524:75)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)