You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception is thrown because socket.py can only accept an integer as its timeout. I have seen some examples that set the timeout in the request object using a tuple. Did something change to the socket file that only accepts timeouts as an integer and no longer a tuple?
After I changed it to use a single integer, instead of a tuple, everything worked.
File "C:\Users\steven\AppData\Local\Programs\Python\Python38\lib\socket.py", line 793, in create_connection
sock.settimeout(timeout)
TypeError: an integer is required (got type tuple)
The text was updated successfully, but these errors were encountered:
After calling:
response = client.get('/me')
An exception is thrown because socket.py can only accept an integer as its timeout. I have seen some examples that set the timeout in the request object using a tuple. Did something change to the socket file that only accepts timeouts as an integer and no longer a tuple?
After I changed it to use a single integer, instead of a tuple, everything worked.
The text was updated successfully, but these errors were encountered: