-
Notifications
You must be signed in to change notification settings - Fork 141
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
fetch() gives SSL error on iOS, use of own trust manager but none defined on Android #166
Comments
Yes you're using trusty = true. |
@RonRadtke Request: I think there needs to be added an import on top of |
it's failing in iOS on the simulator (v16) no matter what is set for trusty. |
@RonRadtke did you consider using a system provided trust manager (something like this) instead of requiring the user to provide it? EDIT: Disregard this, I'm troubleshooting an issue a couple of levels of dependencies deep, and I see that an intermediate dependency is setting the |
So your problem is solved? The reason I require the user to set it, is that in the past we had reports about denied apps due to it. |
Yes I will fix that in the readme. There is also another issue about the trustmanager in the readme i habe to fix. |
Yep, solved, thanks for checking in.
Interesting! and a good thing to know for future submissions to the app stores 👍 |
Bro simply add this in trustAllCerts={false} it will fix certificate issue. <Pdf |
My request concerned an improvement of README file. I just checked: readme now has better instruction on setting up android, the line with import is added here |
rn-fetch-blob isn't working anymore when I upgraded to RN 0.67.4 and target/compile for android 12 (SDK 31). Now, I am trying react-native-blob-util to replace rn-fetch-blob, however it is giving me an error during fetch call. The error I got is similar for both android or iOS.
On iOS I get:
[Error: An SSL error has occurred and a secure connection to the server cannot be made.]
On Android I get:
[Error: ReactNativeBlobUtil request error: java.lang.IllegalStateException: Use of own trust manager but none definedjava.lang.IllegalStateException: Use of own trust manager but none defined]
Any ideas what maybe causing this or suggested changes i should do?
Any input will highly appreciated. Thank you!
react-native-blob-util 0.16.0
react-native 0.67.4
Android build.gradle: Compile and target SDK: 31
The text was updated successfully, but these errors were encountered: