tzi0
tzi0

Reputation: 597

https doesnt work on react-native android

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

Upvotes: 2

Views: 1073

Answers (1)

tzi0
tzi0

Reputation: 597

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.

Upvotes: 1

Related Questions