Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Axios get response Skipped and Status Code 0

I got a problem with my react native app. while accessing API, I get a response Skipped and status code 0. it's shown by using reactotron to log the api response, but when I console.log the error, it just only says:

"Error: Network Error".

It happens with HTTP and HTTPS. But it depends on my network too. When I use cellular data and my home WiFi, it's able to access the API, but when I use my office WiFi, sometimes it gives the error and sometimes it's success to be accessed. I don't know where's the problem, is it from react native configuration or the Back End (REST API).

This is the screenshot of reactotron log:

enter image description here

and this is the screenshot of console.log(error):

enter image description here

like image 570
Adam Davarel Nostradatito Avatar asked Feb 15 '26 05:02

Adam Davarel Nostradatito


1 Answers

I encountered this error many times. one of the sources is SSL handshake failure which is likely to happen due to poor connections.

If You are getting this error on all networks (cellular and wifi), and You are pretty sure Your connection is OK, then I suggest to locate the issue at server side (SSL config for example).

like image 105
armata99 Avatar answered Feb 17 '26 12:02

armata99



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!