forGGe / dweed

Dweet IO discovery protocol and libraries
Apache License 2.0
0 stars 0 forks source link

Restarting listen due to exception: Read timed out #1

Open rasendubi opened 7 years ago

rasendubi commented 7 years ago

Both sensor and view work correctly, but I am constantly getting next error in the logs:

Restarting listen due to exception: HTTPSConnectionPool(host='dweet.io', port=443): Read timed out. (read timeout=32)
Start listening on 81a7150d-7169-421d-8795-876b97df80f5.64e437b6-40aa-11e7-a4b7-7085c2015a5d.ctrl

Reproduced with next commands:

nix-shell -p python3Packages.bokeh --run 'python3 ./sensor_example.py 81a7150d-7169-421d-8795-876b97df80f5

nix-shell -p python3Packages.bokeh --run 'python3 ./view_example.py 81a7150d-7169-421d-8795-876b97df80f5
forGGe commented 7 years ago

This is the issues caused by dweepy lib that using timed stream requests Setting this timeout too high to block almost forever will cause runtime errors when converting to the system time type. I'm not sure how it is handled by requests internally though.

If you mind providing there something like "infinite-time-value", it will be awesome.

But from my observation the moderate value there will not cause any issue except that log and the necessity to handle additional exception.