- Notifications
You must be signed in to change notification settings - Fork 58
feat: improve error handling #1214
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
Merged
beeme1mr merged 18 commits into open-feature:main from Nikzz3:feat/improve-error-handling Mar 8, 2025
Merged
feat: improve error handling #1214
beeme1mr merged 18 commits into open-feature:main from Nikzz3:feat/improve-error-handling Mar 8, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
5456729
to e9405c1
Compare Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
…pen-feature#1215) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
…pen-feature#1217) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
Signed-off-by: christian.lutnik <christian.lutnik@dynatrace.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
…pen-feature#1221) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
…ure#1218) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
…pen-feature#1198) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
…open-feature#1223) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Nick Zimmermann <Nick.Zimmermann@swisscom.com>
c09cf24
to 503fbbc
Compare beeme1mr approved these changes Feb 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomaspoignant any concerns about this?
toddbaert approved these changes Feb 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me.
cc @thomaspoignant (but I'm confident this is right so I'll merge in a few days unless I hear otherwise)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Improve error handling
This PR improves error handling for 400 and 500 error codes. It returns the message to the user from the response payload.
How to test
When the providers receives an error (400 or 500), the provider must show the message of the response payload.