Thanks TJ. I’m only sending twice per day for now.
Hmmm… given that it’s not being hit hard my guess is that this has a lot more to with the host than the code itself. You might need to try out Render’s paid plan or another hosting provider.
That being said, the code will need to be improved if you do start hitting it with more data.
This is an unfortunate amount of work/effort, especially for a problem that will be going away once we have a fix in Notehub. Sorry again for the inconvenience.
TJ
Hey @tjvantoll
Can we try something simple? Since you’ve already done all the work, and it works for you, why don’t we change the URL in your index.js
to “https://api.thingspeak.com/update.json” and I set my route to your Render url? That’s if you are able to share your Render url?
Sorry, was out for a day. I updated the URL and it’s deployed to https://rate-limit-route.onrender.com if you want to try it out.
TJ
Hey @tjvantoll
Yeah, that worked! The last one of 3 Notes showed an unsuccessful route with error:
error performing request: error on HTTP request to https://rate-limit-route.onrender.com: Post "https://rate-limit-route.onrender.com": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
But the data still show up in ThingSpeak! If I send 4 Notes, the last 2 show the error but the data still arrive in ThingSpeak. I’ll take that as a win! Thanks TJ, you’re a legend!
Ray