Skip to content

adafruit_requests.Session() failed! #201

@qiyang77

Description

@qiyang77

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions