-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
…to fetch/xhr without encoding as json.
build native-bridge
@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. |
Check I will do it today or tomorrow, thanks for considering my credits 🤓 |
@markemer I resolved the conflicts, thanks for reviewing. |
One more ask. Can you run |
Co-authored-by: Mark Anderson <[email protected]>
Is there an ETA on when this will be taken up in a release? |
It should be in the current capacitor 5.0 RC. I'm not sure of the GA of Capacitor 5, other than soon. |
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.