madchicken / homebridge-comelit-sb

Comelit Serial Bridge platform plugin for Homebridge
Apache License 2.0
2 stars 2 forks source link

Warnings #9

Closed Nivlac7 closed 1 year ago

Nivlac7 commented 3 years ago

Lot of warnings generated:

[01/03/2021, 09:22:41] [homebridge-comelit-sb-platform] This plugin generated a warning from the characteristic 'Serial Number': [Serial Number] characteristic must have a length of more than 1 character otherwise HomeKit will reject this accessory, ignoring new value. See https://git.io/JtMGR for more info.

And Error occuring 2-3 times a day

[01/03/2021, 11:07:05] [Comelit] Error: timeout of 3000ms exceeded at createError (/usr/local/lib/node_modules/homebridge-comelit-sb-platform/node_modules/axios/lib/core/createError.js:16:15) at RedirectableRequest.handleRequestTimeout (/usr/local/lib/node_modules/homebridge-comelit-sb-platform/node_modules/axios/lib/adapters/http.js:280:16) at Object.onceWrapper (events.js:421:28) at RedirectableRequest.emit (events.js:315:20) at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-comelit-sb-platform/node_modules/follow-redirects/index.js:166:13) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) { config: { url: 'http://192.168.2.7:80/user/icon_status.json', method: 'get', headers: { Accept: 'application/json, text/plain, /', 'User-Agent': 'axios/0.21.1' }, params: { type: 'light' }, transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 3000, adapter: [Function: httpAdapter], xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], data: undefined }, code: 'ECONNABORTED', request: <ref 1> Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 0, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: false }, _events: [Object: null prototype] { response: [Array], error: [Array] }, _eventsCount: 2, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: 10485760, protocol: 'http:', path: '/user/icon_status.json?type=light', method: 'GET', headers: [Object], agent: undefined, agents: [Object], auth: undefined, hostname: '192.168.2.7', port: '80', nativeProtocols: [Object], pathname: '/user/icon_status.json', search: '?type=light' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _onNativeResponse: [Function (anonymous)], _currentRequest: ClientRequest { _events: [Object: null prototype], _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Socket], _header: 'GET /user/icon_status.json?type=light HTTP/1.1\r\n' + 'Accept: application/json, text/plain, /\r\n' + 'User-Agent: axios/0.21.1\r\n' + 'Host: 192.168.2.7\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'GET', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/user/icon_status.json?type=light', _ended: false, res: null, aborted: true, timeoutCb: null, upgradeOrConnect: false, parser: [HTTPParser], maxHeadersCount: null, reusedSocket: false, host: '192.168.2.7', protocol: 'http:', _redirectable: [Circular 1],

  [Symbol(kNeedDrain)]: false,
  [Symbol(corked)]: 0,
  [Symbol(kOutHeaders)]: [Object: null prototype]
},
_currentUrl: 'http://192.168.2.7:80/user/icon_status.json?type=light',
_timeout: Timeout {
  _idleTimeout: 3000,
  _idlePrev: null,
  _idleNext: null,
  _idleStart: 173229316,
  _onTimeout: [Function (anonymous)],
  _timerArgs: undefined,
  _repeat: null,
  _destroyed: true,
  [Symbol(refed)]: true,
  [Symbol(kHasPrimitive)]: false,
  [Symbol(asyncId)]: 4880511,
  [Symbol(triggerId)]: 4880507
},
[Symbol(kCapture)]: false

}, response: undefined, isAxiosError: true, toJSON: [Function: toJSON] }

madchicken commented 1 year ago

Thanks for reporting. The timeout error is a communication problem with the hub. It can happen, I can try to reduce the noise in the logs. I'll remove the warning about the serial version

madchicken commented 1 year ago

Should be fixed in v2.3.5