-
Notifications
You must be signed in to change notification settings - Fork 35
HTTP not found on Alert Obj #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not sure what you mean by this, are you suggesting to use one of these methods instead of GET ?
Perhaps you have something like returning a |
|
Sure, please send the PR, thank you. You will need to update the unit tests too. |
Uh oh!
There was an error while loading. Please reload this page.
I faced this in the alert object but I suspect it occurs across all objects.
Issue: Per documentation, the check to see if alert exists only works if the alert exists.
If it doesn't, it throws httplib.NOT_FOUND(404) exception from here. Traceback below.
All actions including Alert creation/modification should be idempotent. So DELETE and PUT is the way to go. We just need a better mechanism for handling the error.
May be instead of
raise
, just catch the exception and gently let the calling function know? Thoughts?Exception:
The text was updated successfully, but these errors were encountered: