Hello Sara and Rui. I’m working my way through the new Raspberry Pi Pico course and I’m stuck in Section 9.4. I have followed the instructions exactly with regards to Adafruit IO and with the code, and my Pico is connecting, but I only get the following errors :
Response code : 404
Error during request: [Errno 12] ENOMEM
What am I doing incorrectly ? What do these errors mean ?
Thankyou for your input. Regards, Andrew
Hi.
Did you modify the code with the right credentials?
The 404 error means URL not found. You may be inserting something wrong either on the username or feed_name variables…
Can you double-check them?
Regards,
Sara
I am having the same problem. I have recopied your example several times and used the same feed listing / syntax since I am suspecting that may be where the problem lies.
thank you for your attention to this.
My error is: Connection successful!
IP address: 192.168.1.24
Response code: 404
I have tried a variety of feed names:
# Adafruit IO feed name for controlling the LED
# feed_name = ‘Raspberry_Pi_Pico’ code 404
# feed_name = ‘raspberry_pi_pico’ code 404
# feed_name = ‘Raspberry_Pi_Pico’ code 404
feed_name = ‘raspberry-pi-pico’ code 404
# feed_name = ‘Raspberry Pi Pico’ Code 400 “bad Request”
and have quadruple checked my user name and aio_key
(tried a regenerated aio_key, no success.
rebooted and recopied etc.
url = f”https://io.adafruit.com/api/v2/{username}/feeds/{feed_name}/data/last” is my url
Hi.
Can you show me a printscreen of your Adafruit IO dashboard?
To share a printscreen, upload it to Google Drive, imgur, or dropbox and then share a link to the file.
Regards,
Sara
Thank you. Here is the link to my google drive
https://drive.google.com/drive/folders/1ZoV-kewiFyuyXtkJJGgFZ8_HHPxBHWFT?usp=share_link
Hi.
You need to give permission so that I can access those files.
You should have received an email about it.
Regards,
Sara
Sarah, thank you. I have provided permission.
I restarted fresh a couple of times and now I am receiving a different error message.
Connection successful!
IP address: 192.168.1.10
Error during request: [Errno 103] ECONNABORTED
Error during request: [Errno 103] ECONNABORTED
Keyboard Interrupt
>>>
Connection successful!
IP address: 192.168.1.10
Error during request: [Errno 103] ECONNABORTED
Hi.
I think something must have changed because now you need to have at least one value on the feed for the request to work.
Go to the dashboard with the button. Click on it at least one time so that it records some data to the feed.
Then, run the code on the Pico again. It should now work.
It’s working for me with that small change. I followed all the instructions from the start.
Regards,
Sara