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

Handle non-json response data #26

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

cs-balazs
Copy link
Contributor

Calling response.json() fails if the returned data is not a valid JSON string. This PR aims to implement a custom error, so we can handle this case more easily when using the SDK. The error contains the URL, and the request body, so we can have a better idea of what went wrong

@ejayxyz
Copy link
Contributor

ejayxyz commented May 3, 2024

Ah, we should merge this right? @cs-balazs

@PumpkinSeed PumpkinSeed requested review from Swestly32 and removed request for Swestly32 July 14, 2024 13:23
@DashaBochkar
Copy link

Ah, we should merge this right? @cs-balazs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants