Error 429 Too many requests

11 Ansichten (letzte 30 Tage)
Ari Rosti
Ari Rosti am 28 Nov. 2019
Kommentiert: Håkon Dahle am 3 Dez. 2019
Hi!
I am uploading weather data to my ThingSpeak channels from couple of sources. Occasionally channel upload fails and the error message is then 429 Too many requests. Each time this has happened, previous request has been within 10-20 seconds. However, I have Home Licence and then message update interval limit is 1 second. So what is wrong?

Akzeptierte Antwort

Vinod
Vinod am 2 Dez. 2019
Bearbeitet: Vinod am 2 Dez. 2019
Which API are you using to upload the data? If you are using the update API then you should be able to get the 1 second update rate. Note that the 1 second is measured server side, so, any delays between your device sending the data and the server receiving it can cause issues. This should not be a problem if your device is sending the data synchronously -- meaning that it waits for the return code from the server before attempting to send the next point.
If you are using the bulk update API note that it is meant to be called once every 15s or fewer, although you can send multiple points in a single bulk update so you effectively get a 1s update rate.
  1 Kommentar
Håkon Dahle
Håkon Dahle am 3 Dez. 2019
Bulk updates are limited to one update every 15 seconds (this is documented).
In fact, having done a few thousand bulk updates now, you will occasionally get a 429 response when pacing the updates at one per 20 seconds. Each of my bulk updates consists of 24 updates, with a single field per update.
Now I am using one bulk update per 22 seconds and that seems to work for me.
I have a proper paid license.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Communitys

Weitere Antworten in  ThingSpeak Community

Kategorien

Mehr zu Configure Accounts and Channels finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by