Open widgetii opened 6 years ago
Another crash but with different error:
21544208.3613
17802934.9623
7903060.24112
31066550.4245
21125041.9053
Traceback (most recent call last):
File "./run-speedtest.py", line 36, in <module>
process_request(60)
File "./run-speedtest.py", line 20, in process_request
s.get_servers(servers)
File "/usr/lib/python2.7/site-packages/speedtest.py", line 1212, in get_servers
stream = get_response_stream(uh)
File "/usr/lib/python2.7/site-packages/speedtest.py", line 687, in get_response_stream
return GzipDecodedResponse(response)
File "/usr/lib/python2.7/site-packages/speedtest.py", line 565, in __init__
chunk = response.read(1024)
File "/usr/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
File "/usr/lib/python2.7/httplib.py", line 597, in read
s = self.fp.read(amt)
File "/usr/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
socket.timeout: timed out
So sorry for missing this @widgetii ! Thanks a lot for the kind words and useful feedback. You're probably not using this anymore but I've pushed up a new version with error handling for the two exceptions you mentioned.
Hello, thank you for wonderful tool!
I've added your great program to our monitoring system for check metrics of our 4G wireless link and today found that it crashed at night. It seems that it would be very helpful to add some exception handling in case of connection errors in speedtest library.