adafruit / adafruit/Adafruit_CircuitPython_Requests

adafruit_requests.Session() failed!

Open
#201 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
49
Forks
39
PR merge metrics
No merged PRs in 30d

Description

I am trying to initialize a request session on my esp32 board. However, it failed, with error message:
```
File "adafruit_connection_manager.py" line395, in get_connection manager
TypeError: unsupported type for __hash__: socketpool
```
The version of circuitPython is 8.2.7, my board is ESP32-S2 Reverse TFT Feather. The code I used is attached.
```
# settings.toml imports
aio_username = os.getenv('AIO_USERNAME')
aio_key = os.getenv('AIO_KEY')
# connect to wifi
wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD'))
pool = socketpool.SocketPool(wifi.radio)
requests = adafruit_requests.Session(pool, ssl.create_default_context())
```
Any suggestions?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.