• This is a bit of an essay but my help others!!

    I was getting on great with my wiz550io until I encountered this error today. From browsing the forum it seems like others have also had this but there is no definite reason/solution.

    For me it occurs when calling http.get() - there is no response for about 30 seconds then the dreaded "Socket error -7 while sending" is thrown. Once the error occurs it is really difficult to clear. A soft reset, hard reset and even power off/on has no effect - all future http.gets() respond in this way. (I even tried rebooting my PC!!)

    In complete frustration I restarted my broadband router (BT Home Hub 5); the error was cleared and everything worked fine for a while only to re-occur about an hour later. Again a reboot of my router was the only way to clear it.

    Through further investigation I identified that the error only occurs after a hard reset of Espruino (or power off/on) - not every time but after 2 or 3 resets.

    It also appears that the error is cleared if the wiznet device is disconnected from the network for about 10 minutes (or Espruino left powered off). It does not clear if left connected/powered.

    I can also clear the error by using the BT Home Hub manager (http://bthomehub.home/) to disconnect then re-connect to the internet which is much faster than a restart.

    All this makes me think that the issue may be with the wiznet device, not Espruino.

    I am unsure if what I described is how others are getting this error - is it?

    I think getting good robust internet connectivity is vital for espruino - after all we are talking the "Internet of Things"!

    Now that I know what causes the error & how to resolve it if it happens I should be able to make some progress.

About

Avatar for DaveNI @DaveNI started