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 non-object JSON response in CapacitorHttp plugin #6224

Merged
merged 8 commits into from
Mar 22, 2023

Conversation

JanMisker
Copy link
Contributor

The following valid json

"hello world"

is not handled correctly in the CapacitorHttp core plugin. This PR fixes that, although on Android there might be some improvements possible.

See https://github.com/JanMisker/Capacitor-JSONParseError for a simple app that reproduces this error.

@markemer
Copy link
Member

@JanMisker Can you resolve these conflicts? Seems like this solves our issue, but our 204 response handling update caused a conflict. I can move and fix it if you want, but fixing this one will give you the credit in contributors since this is your first PR against the repo.

@JanMisker
Copy link
Contributor Author

Check I will do it today or tomorrow, thanks for considering my credits 🤓

@JanMisker
Copy link
Contributor Author

@markemer I resolved the conflicts, thanks for reviewing.

@markemer
Copy link
Member

One more ask. Can you run npm run fmt on these files?

@markemer markemer merged commit ed47333 into ionic-team:main Mar 22, 2023
markemer added a commit that referenced this pull request Apr 17, 2023
@JanMisker
Copy link
Contributor Author

Is there an ETA on when this will be taken up in a release?

@markemer
Copy link
Member

markemer commented May 2, 2023

It should be in the current capacitor 5.0 RC. I'm not sure of the GA of Capacitor 5, other than soon.

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