Skip to content

Comments

Handle non-json response data#26

Open
cs-balazs wants to merge 4 commits intomainfrom
handle-non-json-reponse
Open

Handle non-json response data#26
cs-balazs wants to merge 4 commits intomainfrom
handle-non-json-reponse

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.

6 participants