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

Better serializer errors #796

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Better serializer errors #796

merged 2 commits into from
Oct 14, 2024

Conversation

realdavidvega
Copy link
Contributor

Background

In the current implementation, the error handling mechanism for HTTP responses is simplistic and makes more difficult for consumers to effectively identify and handle those errors.

This PR

Introduces a structured ResponseErrorInfo data class that encapsulates all relevant details of an HTTP transaction, including request URL, method, and body, as well as response status, headers, and body. Also modifies ResponseSerializerError to include this information.

@realdavidvega realdavidvega self-assigned this Oct 11, 2024
Copy link
Contributor

@javipacheco javipacheco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@realdavidvega realdavidvega merged commit 727745d into main Oct 14, 2024
@realdavidvega realdavidvega deleted the feature/serializer-errors branch October 14, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants