Skip to content

fix: return raw response #20

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Rafosto
Copy link

@Rafosto Rafosto commented May 25, 2025

Ensure the API returns the raw response when the SDK is unable to parse it, allowing for easier debugging of the issue encountered.

Ensure the API returns the raw response when the SDK is unable to parse it, allowing for easier debugging of the issue encountered.
@joaotonaco
Copy link
Member

We have thought about it in the past and we decided to not implement it because the response can be a huge HTML. That's why we throw those other errors for the http status.

That said, it's kinda rare to get this parse error, but if it happened to you I would like to see a minimal reproduction so we can handle it properly.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants