Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1547

Network request failed from my mobile device

$
0
0

I am developing a mobile app using React Native and axios for network request.When I send Post request it says [TypeError: Network request failed]But when I send same request from Postman it works. But in Postman it show an error call 'unable to certify the first certificate'.How can I fix this and why I can not access from mobile.

This is my axios request to api

axios.post(path, {  apiToken: loggedToken,       pf: loggedpf   }).then(function(response) {        if(response.data.msg==1){           setprofilePic(response.data.profile[0]['Epic'])           setisLoading(false);           setdataSource(response.data.profile);       }       else if(response.data.msg==2){           showError(response.data.message);           navigation.navigate('auth');        }        else if(response.data.msg==0){           showError(response.data.message);        }   })

Viewing all articles
Browse latest Browse all 1547

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>