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

Adjust metric not found exception #1286

Merged

Conversation

rafaelweingartner
Copy link
Contributor

@rafaelweingartner rafaelweingartner commented Jan 26, 2023

Following the discussion on [1], Gnocchi was not properly handling the metric not found exceptions, which in turn causes a problem with Gnocchi client.

The exceptions were being rendered as a JSON, and not a string inside the description field. This PR fixes that.
The problem seems to have been caused by: 455c1b9

P.S. There are some other situations that the response is a JSON inside the description attribute. I would prefer as is and fix the issue in the Client. However, I see that this would break the backward compatibility.

[1] gnocchixyz/python-gnocchiclient#133 (comment)

Following the discussion on [1], Gnocchi was not properly handling the metric not found exceptions, which in turn causes a problem with Gnocchi client.

The exceptions were being rendered as a JSON, and not a string inside the description field. This PR fixes that.

[1] gnocchixyz/python-gnocchiclient#133 (comment)
@tobias-urdin
Copy link
Contributor

Thanks! This makes sense.

@mergify mergify bot merged commit b7e78a2 into gnocchixyz:master Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants