Hamza Hamal
Hamza Hamal

Reputation: 41

why https request is not working in my react-native app?

In my react native app , http requests are working fine, but when it comes to https request, it is giving error , network request failed . Problem is bit strange here as if I pick and run any example api from the internet, it is working alright even with https. I can't tell ,if problem is with my api or with my system.

i have tried few solutions ,but they didnt work

Upvotes: 4

Views: 2658

Answers (1)

Md. Robi Ullah
Md. Robi Ullah

Reputation: 2172

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

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

My issue was SSL related. Just wasn't set up correctly with nginx. Had to combine SSL certificates etc.

Upvotes: 1

Related Questions