Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adafruit_requests.Session() failed! #201

Open
qiyang77 opened this issue Jul 5, 2024 · 1 comment
Open

adafruit_requests.Session() failed! #201

qiyang77 opened this issue Jul 5, 2024 · 1 comment

Comments

@qiyang77
Copy link

qiyang77 commented Jul 5, 2024

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?

@justmobilize
Copy link
Collaborator

I can check for backwards compatibility, have you tried using CircuitPython 9.x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants