error: Timed out / errorCode: -1

Hi! 

 

Would love some help on this. My app is almost complete and I have been going through it thoroughly to test for bugs etc. Quite often I am experiencing the following timeout error:

 

: error: Timed out

Jun 22 17:24:29 iPhone xxx- v1.0[4469] <Warning>: errorCode: -1

Jun 22 17:24:29 iPhone xxx- v1.0[4469] <Warning>: ERROR!!        — This is my own personal msg when an error occurs

 

The images that are meant to show up (being served my EC2) goes blank when this happens and my app kind of crashes (because no image is found and the app spits out an error).

 

As mentioned, I am using Amazon EC2, I am also using composer. I declare mc = require( “mod_coronium” ) only on main.lua. 

 

This error was not due to lost internet (I have a way to detect for slow internet via ping requests, and then I show a “lost internet” message). But the above mentioned time-out error is a lost communication to the Amazon server, and I am not sure what is causing it.

 

How do I handle these time out errors? What can I do, that if a timeout error does occur, my app simply doesn’t crash, it just tries to reconnect? 

 

Thanks!

 

 

Hi David,

Did you ever find a solution to this? I have a project that was working fine, then suddenly it stopped connecting and simply times out at the very start.

Everything looks fine (with my limited knowledge) on the Server, and I’m able to connect via SSH without any issues. Any thoughts? If not I’ll raise a new question here in the forums.

Thanks,

Michael

Are you both running on Amazon? That might lead me to a clue.

Let me know.

Hi Mike, sorry for late response. I am pretty sure this problem exists because of bad internet/wifi connections. When I have a solid connection my app works great (4G in particular is great), but the moment I connect to my shitty wifi network at home my app behaves badly. I have tried to implement poor internet handling code but it only helps to some extent. Let me know if you come up with another cause.

Hi David,

Did you ever find a solution to this? I have a project that was working fine, then suddenly it stopped connecting and simply times out at the very start.

Everything looks fine (with my limited knowledge) on the Server, and I’m able to connect via SSH without any issues. Any thoughts? If not I’ll raise a new question here in the forums.

Thanks,

Michael

Are you both running on Amazon? That might lead me to a clue.

Let me know.

Hi Mike, sorry for late response. I am pretty sure this problem exists because of bad internet/wifi connections. When I have a solid connection my app works great (4G in particular is great), but the moment I connect to my shitty wifi network at home my app behaves badly. I have tried to implement poor internet handling code but it only helps to some extent. Let me know if you come up with another cause.