Bug: Status & Last Entry in Channel returns 404 for POST but not GET | ThingSpeak API | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Bug: Status & Last Entry in Channel returns 404 for POST but not GET
No permission to create posts
December 31, 2013
2:22 pm
Squamish, BC

Forum Posts: 5
Member Since:
December 31, 2013
sp_UserOfflineSmall Offline

According to the API documentation, Status updates and Last Entry in Channel Feed can be requested via POST or GET, but while GET works as expected, POST returns 404.

Below are some TCP streams showing a working GET request and a failing POST request, (where channel 9325 is a public channel). I can provide my Java test cases if required.

Has anyone else encountered this issue, or is everyone just using GET? I'm in the process of setting up a Rails VM to attempt to debug, but I'm a total stranger to Ruby so I don't know how far I'll get.

GET /channels/9235/status.json HTTP/1.1
user-agent: unirest-java/1.1
accept-encoding: gzip
Host: api.thingspeak.com
Connection: Keep-Alive

HTTP/1.1 200 OK
Server: nginx/1.5.7
Date: Tue, 31 Dec 2013 19:04:41 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Status: 200
Cache-Control: max-age=0, private, must-revalidate
X-Rack-Cache: miss
Content-Encoding: gzip

POST /channels/9235/status.json HTTP/1.1
connection: close
user-agent: unirest-java/1.1
accept-encoding: gzip
Content-Length: 0
Host: api.thingspeak.com

HTTP/1.1 404 Not Found
Server: nginx/1.5.7
Date: Tue, 31 Dec 2013 19:04:41 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Status: 404
X-Rack-Cache: invalidate, pass
Content-Encoding: gzip

December 31, 2013
5:16 pm

Forum Posts: 457
Member Since:
March 14, 2011
sp_UserOfflineSmall Offline

Hi Andrew,

Thanks for your feedback regarding this issue. The documentation was incorrect and has been updated. Only GET requests should be used for these actions, since no data is being changed on the server.


Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

tran, huldacormier, bogart, estebanmateo93, mikewrite, onlinebusiness

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457