https doesnt work on react-native android

773 Views Asked by At

When i try to get a request to my api via https protocol it doesnt work (NETWORK_ERROR returns), but if i do it via http it works fine. Im using apisauce. What i've tried:

I think the problem with certificates(?), but why i can do it via postman? RN 0.64.0

1

There are 1 best solutions below

0
On

In my case it was wrong FQDM: was:

api_demo_13312021.mydomian.com

changed to:

api.mydomain.com

I checked my domain for correct ssl sertificate on many resources, but they apparently don't check FQDM. Today i tried it on https://www.digicert.com/help/ and notified for

not a fully qualified public domain name or public IP address.