mathworks / thingspeak-arduino

ThingSpeak Communication Library for Arduino, ESP8266 and ESP32
https://thingspeak.com
431 stars 231 forks source link

Getting error -304 but data is written to Thingspeak #83

Closed aguinaldoabbj closed 2 years ago

aguinaldoabbj commented 2 years ago

Hi all,

I'm struggling with an odd problem. When I try to push a value to a field in a Thingspeak channel I get mostly code -304 (timeout), with some interleaved -302 errors, however, data is indeed written to my channel, as can be seen in the attached screenshots:

Screenshot_20220111_155735 Screenshot_20220111_155655

I'm using Arduino MEGA 2560 and ENC28J60 ethernet module (with UIPEthernet library). I'm using the Ethernet/WriteMultipleFields example. It happens both with DHCP and static addressing.

Any clues?

Thanx in advance.

birrozza commented 2 years ago

I have the same problem on a wemos d1 mini (esp8266). The data is uploaded to the channel but the API returns error code 401. I have also updated the library from 1.5.0 to 2.0.1

Edit: for me now work fine! Note: I haven't made any changes to my code!!!!!!!

v-c commented 2 years ago

Not reproducible. This might have to do with the network configuration on the device end.