What does "Network error! -1" mean?

Hi Guys!

 

I’m getting this error isError = -1 for my network.requests on a specific wifi network of my client’s house. This error does not happen when i’m outside using 3G,4G network or even at my own home’s wifi network. It only arises at my  client’s wifi network.

 

The error is immediate on both iOS & Android when i does a network.request so i’m quite sure its not because of timeout or network latency. Also other apps seems to work fine on the wifi network. Does anyone know what could be the cause and how to resolve this? 

 

I hoping its just my client wifi network that have the problem but i cant deny the fact when the app is launch, this error may pop up in different user’s phone so would need to resolve this. I applied the wrapping solution soroush  kindly offered but the error is still there as well.

 

Some of the possible problems i’ve taken out of consideration includes:

1)Source code error : As it can run on most network but only on this  specific  one and possibly a few others there’s error

 

2)OS error: Both iOS & Android can work on most other servers, only this

 

3)Server error: Same thing, no error when on other networks except for a selected few.

 

I’m really dumbfounded on this so any advice is appreciated. Thanks so much!

Well, I would think the clients home WiFi/Router may be the culprit. Since we don’t know much about your clients home network. You need to check to make sure there isn’t a router settings that’s blocking your access. Perhaps a proxy is in place.

Rob

So glad this topic was here, this -1 error was causing me to pull my hair out. The wrapped network request solution seems to have worked though.

Hi Guys!

 

I’m getting this error isError = -1 for my network.requests on a specific wifi network of my client’s house. This error does not happen when i’m outside using 3G,4G network or even at my own home’s wifi network. It only arises at my  client’s wifi network.

 

The error is immediate on both iOS & Android when i does a network.request so i’m quite sure its not because of timeout or network latency. Also other apps seems to work fine on the wifi network. Does anyone know what could be the cause and how to resolve this? 

 

I hoping its just my client wifi network that have the problem but i cant deny the fact when the app is launch, this error may pop up in different user’s phone so would need to resolve this. I applied the wrapping solution soroush  kindly offered but the error is still there as well.

 

Some of the possible problems i’ve taken out of consideration includes:

1)Source code error : As it can run on most network but only on this  specific  one and possibly a few others there’s error

 

2)OS error: Both iOS & Android can work on most other servers, only this

 

3)Server error: Same thing, no error when on other networks except for a selected few.

 

I’m really dumbfounded on this so any advice is appreciated. Thanks so much!

Well, I would think the clients home WiFi/Router may be the culprit. Since we don’t know much about your clients home network. You need to check to make sure there isn’t a router settings that’s blocking your access. Perhaps a proxy is in place.

Rob