My favorites | Sign in
Project Logo
       
New issue | Search
for
| Advanced search | Search tips
Issue 703: Invalid JSON data returned for maintenance message
4 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  m...@twitter.com
Closed:  Jun 25
Type-Defect
Priority-Medium
Component-REST


Sign in to add a comment
 
Reported by craig.hockenberry, Jun 16, 2009
What's the problem you're seeing?

When Twitter went down for maintenance, the following JSON response was returned:

{"request":NULL,"error":"Twitter is down for maintenance. It will return in about an hour."}

According to the JSON spec, "A value can be a string in double quotes, or a number, or true or 
false or null, or an object or an array."

The strict parser I am using does not recognize "NULL" (it does recognize "null".)

What was the request you made (if applicable)?  Be sure to obscure your
Basic Auth headers.

http://twitter.com/statuses/user_timeline.json

What was the full HTTP response, with headers (if applicable)

HTTP/1.1 200 OK
Date: Tue, 16 Jun 2009 21:03:13 GMT
Server: Apache
Last-Modified: Tue, 16 Jun 2009 20:58:40 GMT
Accept-Ranges: bytes
Content-Length: 93
Cache-Control: max-age=300
Expires: Tue, 16 Jun 2009 21:08:13 GMT
Vary: Accept-Encoding
Connection: close
Content-Type: application/json; charset=utf-8

{"request":NULL,"error":"Twitter is down for maintenance. It will return in about an hour."}


Comment 1 by m...@twitter.com, Jun 17, 2009
Added this fix to another branch I have open.
Status: Accepted
Owner: m...@twitter.com
Labels: Component-REST
Comment 2 by igudo1, Jun 17, 2009
 Issue 564  has been merged into this issue.
Comment 3 by m...@twitter.com, Jun 24, 2009
This has been fixed and reviewed and is in the queue of things to be deployed.
Comment 4 by m...@twitter.com, Jun 25, 2009
This has now been fixed and should be correct for future maintenance messages.
Status: Fixed
Sign in to add a comment

Hosted by Google Code