WebThingsIO / gateway

WebThings Gateway - a self-hosted web application for monitoring and controlling a building over the web
http://webthings.io/gateway
Mozilla Public License 2.0
2.62k stars 339 forks source link

TimeoutOverflowWarning in homekit-adapter and thing-url-adapter with 1.1.0-alpha.2 #3029

Open KaiRo-at opened 1 year ago

KaiRo-at commented 1 year ago

I did run the OTA update to 1.1.0-alpha.2 on my Raspberry Pi 3 gateway setup, and since then, I get the following lines in the log:

2022-12-06 15:38:50.984 ERROR  : homekit-adapter: (node:26985) TimeoutOverflowWarning: 118536858373.96907 does not fit into a 32-bit signed integer.
2022-12-06 15:38:50.986 ERROR  : homekit-adapter: Timeout duration was set to 1.
2022-12-06 15:38:50.987 ERROR  : homekit-adapter: (node:26985) TimeoutOverflowWarning: 125600609384.66571 does not fit into a 32-bit signed integer.
2022-12-06 15:38:50.989 ERROR  : homekit-adapter: Timeout duration was set to 1.
2022-12-06 15:38:50.990 ERROR  : homekit-adapter: (node:26985) TimeoutOverflowWarning: 132255596803.10953 does not fit into a 32-bit signed integer.
2022-12-06 15:38:50.991 ERROR  : homekit-adapter: Timeout duration was set to 1.
2022-12-06 15:38:50.992 ERROR  : homekit-adapter: (node:26985) TimeoutOverflowWarning: 141466921038.08353 does not fit into a 32-bit signed integer.
2022-12-06 15:38:50.994 ERROR  : homekit-adapter: Timeout duration was set to 1.
2022-12-06 15:38:50.995 ERROR  : homekit-adapter: (node:26985) TimeoutOverflowWarning: 146803712000 does not fit into a 32-bit signed integer.
2022-12-06 15:38:50.996 ERROR  : homekit-adapter: Timeout duration was set to 1.
2022-12-06 15:38:50.998 ERROR  : thing-url-adapter: (node:26991) TimeoutOverflowWarning: 118976731591.79948 does not fit into a 32-bit signed integer.
2022-12-06 15:38:50.999 ERROR  : thing-url-adapter: Timeout duration was set to 1.
2022-12-06 15:38:51.000 ERROR  : thing-url-adapter: (node:26991) TimeoutOverflowWarning: 127097508256.02838 does not fit into a 32-bit signed integer.
2022-12-06 15:38:51.001 ERROR  : thing-url-adapter: Timeout duration was set to 1.
2022-12-06 15:38:51.003 ERROR  : thing-url-adapter: (node:26991) TimeoutOverflowWarning: 134225454544.38377 does not fit into a 32-bit signed integer.
2022-12-06 15:38:51.004 ERROR  : thing-url-adapter: Timeout duration was set to 1.
2022-12-06 15:38:51.005 ERROR  : thing-url-adapter: (node:26991) TimeoutOverflowWarning: 140722859571.65573 does not fit into a 32-bit signed integer.
2022-12-06 15:38:51.006 ERROR  : thing-url-adapter: Timeout duration was set to 1.
2022-12-06 15:38:51.007 ERROR  : thing-url-adapter: (node:26991) TimeoutOverflowWarning: 146803712000 does not fit into a 32-bit signed integer.
2022-12-06 15:38:51.009 ERROR  : thing-url-adapter: Timeout duration was set to 1.

This sounds a little bit like if a JS timestamp value (which is in microseconds!) is being tried to be written into a seconds-based field without the required division by 1000.