Bug: api do not return correct timeout error TimeoutError -> Timeout #44
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/uptime-kuma-api#44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi 👋
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
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.