-301 error of ThingSpeak
Latest activity Reply by Christopher Stapels
on 6 Sep 2023
Hi! Actually I'm trying to store data from 5 sensors on the ThingSpeak cloud. I was able to do it 2-3 days back, but right now I'm trying to do the same for last 2-3 hours and it's just not happening. There's nothing wrong with the code because it's getting compiled properly. I'm using
ThingSpeak.writeFields(2261556,"xxxxxxxxxxxxxxxx");
I tried printing its value after storing in a temporary variable........The value comes out to be -301. Is there any fix for this? I need it urgently for a project.
I hope to receive some help soon. Thanks!
7 Comments
Time Descending@Christopher Stapels Thanks for replying! I tried it through web it's working. However, I aim to collect the data from sensors, store it o ThingSpeak and then access it through a mobile application. So, I want a solution for the -301 error coming while connecting to ThingSpeak for writing the data.
I'm using a Windows.
301 error generally means connectivity. What kind of device do you have? I would try moving the device or try connecting to a different network.
For troubleshooting, you can try updating from a web browser, with thins kind of commansd in the browser address bar.
Just make sure to replace XXXXXXXXXXXXXXXX with your write API key for the channel. Ive redacted yours above, jut to keep it safe.
Sign in to participate