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
To start, I'm using this library along with the adafruit_espatcontrol library. When using a URL such as http://example.com:8000/, the error RuntimeError: Connection type must be TCP, UDL or SSL is raised.
I think this happens because the conntype parameter is left empty during the _get_socket call, which results in the socket determining the type of the connection based on the port alone.
Since this library knows whether the request is using HTTP or HTTPS, maybe the conntype can be passed directly to the function based on that. Unfortunately, the adafruit_esp32spi library seems to use a completely different way of describing the conntype, which might make passing it problematic.
The text was updated successfully, but these errors were encountered:
To start, I'm using this library along with the
adafruit_espatcontrol
library. When using a URL such ashttp://example.com:8000/
, the errorRuntimeError: Connection type must be TCP, UDL or SSL
is raised.I think this happens because the
conntype
parameter is left empty during the_get_socket
call, which results in the socket determining the type of the connection based on the port alone.Since this library knows whether the request is using HTTP or HTTPS, maybe the
conntype
can be passed directly to the function based on that.Unfortunately, theadafruit_esp32spi
library seems to use a completely different way of describing theconntype
, which might make passing it problematic.The text was updated successfully, but these errors were encountered: