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

Fix parsing error in ApiException #18

Open
seedspirit opened this issue Sep 29, 2024 · 0 comments
Open

Fix parsing error in ApiException #18

seedspirit opened this issue Sep 29, 2024 · 0 comments
Assignees

Comments

@seedspirit
Copy link
Contributor

Error exists in parsing unsuccessful response to ApiErrorResponse in ApiException class.
It seems it occurred because wrong method called

// wrong method
return new Gson().fromJson(response.body().toString(), ApiErrorResponse.class);

// corrected method
return new Gson().fromJson(response.body().string(), ApiErrorResponse.class);

Can I fix it and make a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants