Aio.send error

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
lostcity
 
Posts: 35
Joined: Mon Dec 07, 2009 7:02 pm

Aio.send error

Post by lostcity »

I get the following error message with my python script. I has worked well for a a couple of days but now produces this error message:
Traceback (most recent call last):
File "Thermometer.py", line 37, in <module>
aio.send('My_Garage',read_temp())
File "/usr/local/lib/python2.7/dist-packages/Adafruit_IO/client.py", line 90, in send
return Data.from_dict(self._post(path, {'value': value}))
File "/usr/local/lib/python2.7/dist-packages/Adafruit_IO/client.py", line 72, in _post
self._handle_error(response)
File "/usr/local/lib/python2.7/dist-packages/Adafruit_IO/client.py", line 56, in _handle_error
raise RequestError(response)
Adafruit_IO.errors.RequestError: Adafruit IO request failed: 404 Not Found

User avatar
jerryn
 
Posts: 1890
Joined: Sat Sep 14, 2013 9:05 am

Re: Aio.send error

Post by jerryn »

I was having the same problem starting a few hours ago. I discovered that if I removed the underscore from my feed name, it started working again. I changed it from basement_temperature to basementtemperature and it now works. Your mileage may vary ....
Last edited by jerryn on Tue Sep 19, 2017 11:39 pm, edited 1 time in total.

User avatar
jerryn
 
Posts: 1890
Joined: Sat Sep 14, 2013 9:05 am

Re: Aio.send error

Post by jerryn »

It appears that this is now strictly enforced!
from the guide: https://learn.adafruit.com/adafruit-io-basics-feeds
Name - A short descriptive title of your data. Letters, numbers, and spaces are valid characters, and this field is required. The feed name must be unique for your account.

User avatar
lostcity
 
Posts: 35
Joined: Mon Dec 07, 2009 7:02 pm

Re: Aio.send error

Post by lostcity »

jerryn wrote:I was having the same problem starting a few hours ago. I discovered that if I removed the underscore from my feed name, it started working again. I changed it from basement_temperature to basementtemperature and it now works. Your mileage may vary ....
Thanks, I removed the underscore and eureka! now it works. I replaced the underscore with a hyphen. Will see what this produces.

Thanks for the response and tip.

User avatar
tvoverbeek
 
Posts: 21
Joined: Mon Feb 24, 2014 3:31 pm

Re: Aio.send error

Post by tvoverbeek »

My feeds started failing yesterday with the same error:
Adafruit_IO.errors.RequestError: Adafruit IO request failed: 404 Not Found.
I am using the REST API.
I was using the 'human readable name' in aio.send().
Replacing it with the key (all lowercase, no spaces, hyphens allowed) made it work again.
I guess this is all in preparation for IO going out of Beta next month.

User avatar
lostcity
 
Posts: 35
Joined: Mon Dec 07, 2009 7:02 pm

Re: Aio.send error

Post by lostcity »

lostcity wrote:
jerryn wrote:I was having the same problem starting a few hours ago. I discovered that if I removed the underscore from my feed name, it started working again. I changed it from basement_temperature to basementtemperature and it now works. Your mileage may vary ....
Thanks, I removed the underscore and eureka! now it works. I replaced the underscore with a hyphen. Will see what this produces.

Thanks for the response and tip.
Well it started working but then it pooped out on me. Back to the Drawing Board

User avatar
jerryn
 
Posts: 1890
Joined: Sat Sep 14, 2013 9:05 am

Re: Aio.send error

Post by jerryn »

Mine is still working. No hyphens...

User avatar
lostcity
 
Posts: 35
Joined: Mon Dec 07, 2009 7:02 pm

Re: Aio.send error

Post by lostcity »

jerryn wrote:Mine is still working. No hyphens...
I think I found my problem. Sometime back I created a new dashboard along with a feed by the same name (doh!). Once I deleted that and made the changes noted above it seems to be working. So far, a solid hour of data.

User avatar
jerryn
 
Posts: 1890
Joined: Sat Sep 14, 2013 9:05 am

Re: Aio.send error

Post by jerryn »

I learned about this link and a recent update on the "discord" site today.
https://learn.adafruit.com/naming-thing ... troduction

User avatar
lostcity
 
Posts: 35
Joined: Mon Dec 07, 2009 7:02 pm

Re: Aio.send error

Post by lostcity »

jerryn wrote:I learned about this link and a recent update on the "discord" site today.
https://learn.adafruit.com/naming-thing ... troduction

Feed is still running, Thanks for the link. Much appreciated.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”