uptime-kuma-api icon indicating copy to clipboard operation
uptime-kuma-api copied to clipboard

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

Open Zerka30 opened this issue 1 year ago • 1 comments

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

Zerka30 avatar Aug 10 '23 09:08 Zerka30

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.

lucasheld avatar Aug 12 '23 15:08 lucasheld