pimoroni / enviro

MIT License
101 stars 79 forks source link

Exception thrown when Adafruit IO is the destination but no key is provided #147

Open ZodiusInfuser opened 1 year ago

ZodiusInfuser commented 1 year ago

From @helgibbons:

2023-02-07 12:18:02 [debug    /  94kB]   - an exception occurred when uploading. Traceback (most recent call last):
  File "enviro/destinations/adafruit_io.py", line 31, in upload_reading
  File "urequests.py", line 184, in post
  File "urequests.py", line 101, in request
TypeError: object with buffer protocol required

^ No username or key Username but no key gets the same error

Key but no username gets more useful error

2023-02-07 12:20:23 [debug    /  84kB]   - upload issue 'not found - that username does not exist' (404 - Not Found)