Skip to content

adafruit_requests.Session() failed! #201

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions