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(ios/android): better http error handling #6208

Merged
merged 5 commits into from
Jan 17, 2023
Merged

fix(ios/android): better http error handling #6208

merged 5 commits into from
Jan 17, 2023

Conversation

jcesarmobile
Copy link
Member

On Android:
remove the System.out line
Return the error localized message first and then the exception name as rejection code

On iOS:
Add missing rejection on data task error
return the localized message instead of "Error" and the error domain as rejection code instead of "REQUEST" on the existing and new rejection

closes #6024
closes #6033

@jcesarmobile jcesarmobile merged commit 7d4d70a into main Jan 17, 2023
@jcesarmobile jcesarmobile deleted the http-errors branch January 17, 2023 14:18
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.

CapacitorHttp Plugin error handling
4 participants