Skip to content
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

Catch HumioHTTPException #269

Open
hmpf opened this issue Aug 9, 2022 · 2 comments
Open

Catch HumioHTTPException #269

hmpf opened this issue Aug 9, 2022 · 2 comments
Labels
500 Error bug Something isn't working enhancement New feature or request priority: low

Comments

@hmpf
Copy link
Owner

hmpf commented Aug 9, 2022

Not being able to reach humio should not crash the site. Raise an alert some other way and continue.

HumioHTTPException is a wrapper around requests.HTTPError, this might be a good excuse to look at exception groups and forcing a newer version of python.

@hmpf hmpf added bug Something isn't working enhancement New feature or request 500 Error labels Aug 9, 2022
@hmpf
Copy link
Owner Author

hmpf commented Aug 9, 2022

Exception groups won't be out until Python 3.11 which is scheduled to be released in October 2022 so we need to handle this the old-fashioned way for now.

@hmpf
Copy link
Owner Author

hmpf commented Aug 22, 2022

Turning off logging to Humio on the affected instances as a workaround until a new version of the logger is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
500 Error bug Something isn't working enhancement New feature or request priority: low
Projects
None yet
Development

No branches or pull requests

1 participant