lucasheld / uptime-kuma-api

A Python wrapper for the Uptime Kuma Socket.IO API
https://uptime-kuma-api.readthedocs.io
MIT License
272 stars 21 forks source link

Bug: api do not return correct timeout error TimeoutError -> Timeout #44

Open Zerka30 opened 1 year ago

Zerka30 commented 1 year ago

Hi :wave:

The API does not return the timeout error associated with this wrapper when the URL is triggered. This is due to the fact that socketio returns its own timeout errors, and since no check is performed on the _call() function, the wrapper will return socketio's error.

Which is a shame when you're making custom errors, and cost me 2 hours :D

lucasheld commented 1 year ago

Sorry :D However, I had to introduce custom errors for timeouts because I also use them apart from socketio. I forgot it here, thank you.