POST return values and failed POSTs | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

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
POST return values and failed POSTs
No permission to create posts
July 16, 2011
11:07 am
Avatar
JChristensen
Grand Blanc, MI

Gold
Members
Forum Posts: 55
Member Since:
July 15, 2011
sp_UserOfflineSmall Offline

What are the three values returned by POST?  I couldn't find them explained in the API documentation.  Pretty sure the second value is the entry_id.

Once in a while, a POST seems to fail, even though the server sends an OK/200 response.  Why might this be? Below is a log of status messages from four consecutive POSTs.  Note the different return values from the third POST.  Indeed this data was not captured.  The numbers that begin each status message are milliseconds.

7359 XBee RX/ACK
7428 Connected to server
7438 POST 2091,3,71.2
7580 Server response
HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Sat, 16 Jul 2011 13:10:40 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Status: 200
ETag: "46922a0880a8f11f8f69cbb52b1396be"
Cache-Control: max-age=0, private, must-revalidate

3
582
0

7651 Disconnected

60000 **STATUS POSTs=1 connectFAIL=0 discWAIT=0
68307 XBee RX/ACK
68375 Connected to server
68386 POST 2092,3,71.0
68514 Server response
HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Sat, 16 Jul 2011 13:11:41 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Status: 200
ETag: "9ad6aaed513b73148b7d49f70afcfb32"
Cache-Control: max-age=0, private, must-revalidate

3
583
0

68585 Disconnected

120000 **STATUS POSTs=2 connectFAIL=0 discWAIT=0
129262 XBee RX/ACK
129330 Connected to server
129341 POST 2093,3,71.0
129463 Server response
HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Sat, 16 Jul 2011 13:12:42 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Status: 200
ETag: "cfcd208495d565ef66e7dff9f98764da"
Cache-Control: max-age=0, private, must-revalidate

1
0
0

129533 Disconnected

180000 **STATUS POSTs=3 connectFAIL=0 discWAIT=0
190219 XBee RX/ACK
190287 Connected to server
190299 POST 2094,3,71.0
190425 Server response
HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Sat, 16 Jul 2011 13:13:43 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: close
Vary: Accept-Encoding
Status: 200
ETag: "f5deaeeae1538fb6c45901d524ee2f98"
Cache-Control: max-age=0, private, must-revalidate

3
584
0

190496 Disconnected

 

July 19, 2011
11:45 pm
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

How long are you waiting between posts? The rate limit maybe returning the "0" response to tell you to slow down the post rate.

July 20, 2011
10:37 pm
Avatar
JChristensen
Grand Blanc, MI

Gold
Members
Forum Posts: 55
Member Since:
July 15, 2011
sp_UserOfflineSmall Offline

One minute between POSTs.  Too fast?

July 21, 2011
2:40 am
Avatar
Hans
Natick, MA

Admin
Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

Hmm, no that's okay. It must be something else. Sometimes if you are writing your own POST body, the content length can get off or there is a missing cariage return and line feed.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
16 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:

briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457