I'm making a request to save app data and it fails on the POST. Heres
what Firebug has to say (from the Header, Post, Response tabs):
POST http://u5rodp7l-a.gmodules.com/46/o/api/json 500 (297ms)
------
Response Headers
Content-Type text/html; charset=UTF-8
Content-Encoding gzip
Cache-Control private
Content-Length 126
Date Mon, 12 Nov 2007 14:19:12 GMT
Server GFE/1.3
Connection Close
Request Headers
Host u5rodp7l-a.gmodules.com
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9)
Gecko/20071025 Firefox/2.0.0.9
Accept text/xml,application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Content-Type application/x-www-form-urlencoded;charset=utf-8
Referer
http://u5rodp7l-a.gmodules.com/ig/ifr?url=http://code.nytimes.com/xml/google/gadget/timesshare/index.xml&parent=http://sandbox.orkut.com&lang=en-US&country=US&synd=orkut&mode=canvas&mid=0&h=200
Content-Length 1459
Pragma no-cache
Cache-Control no-cache
------
req=%5B%7B%22key%22%3A%22status%22%2C%22request%22%3A%7B%22type%22%3A
%22UPDATE_PERSON_DATA%22%2C%22parameters
%22%3A%7B%22id%22%3A%22OWNER%22%2C%22key%22%3A%22NYTS_Favorites%22%2C
%22value%22%3A%7B%22Article%22%3A
%5B%7B%22timestamp%22%3A1194404293114%2C%22summary%22%3A%22The
%20escalating%20confrontation%20with%20President
%20Bush%20over%20federal%20spending%20is%20being%20fueled%20in%20part
%20by%202008%20political%20considerations
.%20%22%2C%22headline%22%3A%22House%20Steps%20Up%20Confrontation%20With
%20Bush%20Over%20Spending%22%2C
%22id%22%3A%222007_11_07_washington_07cnd_spend%22%2C%22link%22%3A
%22http%3A%2F%2Fwww.nytimes.com%2F2007
%2F11%2F07%2Fwashington%2F07cnd-spend.html%3Fex%3D1352091600%26en
%3Df01e3a9d4b78d3bf%26ei%3D5088%26partner
%3Drssnyt%26emc%3Drss%22%7D%2C%7B%22id%22%3A
%222007_11_12_us_politics_12spend%22%2C%22headline%22%3A
%22A%20New%20Channel%20for%20Soft%20Money%20Starts%20Flowing%22%2C
%22summary%22%3A%22Hundreds%20of%20millions
%20of%20dollars%20are%20expected%20to%20pour%20into%20groups%20built
%20to%20sway%20voters%20outside%20of
%20campaign%20law%20limitations.%22%2C%22link%22%3A%22http%3A%2F
%2Fwww.nytimes.com%2F2007%2F11%2F12%2Fus
%2Fpolitics%2F12spend.html%3Fex%3D1352523600%26en
%3D166f542270983a63%26ei%3D5088%26partner%3Drssnyt%26emc
%3Drss%22%2C%22timestamp%22%3A1194895159312%7D%5D%7D%7D%7D%7D
%5D&st=AFinprTAJxCUg6z-OA4fiAyoWzLKMFgD-
zZY9o12Sza8VUCZXr7Dg4t7WZDIBqbIP7OHkYjaBp8i84eoA3XzSxkXzzMWGs56IdB41qacLj-
XuqBymr5jL-M
&out=js
------
<HTML>
<HEAD>
<TITLE>Internal Server Error</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Internal Server Error</H1>
<H2>Error 500</H2>
</BODY>
</HTML>
The code itself that is making this request looks like this:
var req = opensocial.newDataRequest();
req.add(req.newUpdatePersonAppDataRequest("OWNER", "NYTS_Favorites",
NYTS_Holder), "status");
req.send(addArticleResponse);
NYTS_Holder is valid json.
Any suggestions would be welcome. I'm hoping its an obvious issue that
someone can point out.
-Michael
Others have the same problem here:
http://groups.google.com/group/opensocial-api/browse_thread/thread/40c2fc61d78996eb