urequests with ussl causes an OSError

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
User avatar
ebnkhaldon
Posts: 2
Joined: Fri Aug 25, 2017 1:21 pm

urequests with ussl causes an OSError

Post by ebnkhaldon » Fri Aug 25, 2017 1:29 pm

When trying to get or post (to https links) every n amount of seconds using the urequests library it works fine and make around 10-15 successful requests then suddenly it raises an OSError -1.
And The Error points me to line 56 in the urequests code which is:
s = ussl.wrap_socket(s, server_hostname=host)
Normally I would catch any exception that occurs and try to POST it again or POST another packet.
However, if an OSError occurs all the next Requests fails too which forces me to reset the board.

Post Reply