Hi Alex. If you expect to fetch a large number of opensocial.Person objects using opensocial.DataRequest.newFetchPeopleRequest(), you should specify a couple of additional parameters before you send your request. These can be used to limit the number of objects returned among other things. Check out this snippet as an example:
var params = {}; params[opensocial.DataRequest.PeopleRequestFields.MAX] = 1000; params[opensocial.DataRequest.PeopleRequestFields.SORT_ORDER] = opensocial.DataRequest.SortOrder.NAME; req.add(req.newFetchPeopleRequest('OWNER_FRIENDS', params), 'owner_friends_data'); req.add(req.newFetchPeopleRequest('VIEWER_FRIENDS', params), 'viewer_friends_data'); The documentation page below has a full listing of optional "PeopleRequestFields" that you can specify: http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial.DataRequest.PeopleRequestFields.html Try playing around with these parameters and let me know if you're able to make your request execute successfully. Thanks! Cheers! - Jason P.S. Don't worry about the response text; all responses received after calling gadgets.io.makeRequest() are formatted similarly. On Feb 22, 1:00 pm, Alex E <[EMAIL PROTECTED]> wrote: > Why would one get an message like this Firebug trace? > > -------------------------------------- > POSThttp://2.o.gmodules.com/46/o/ig/proxy?output=js(161ms)ifr (line > 308) > ParamsHeadersPostResponse > Response Headers > Request Headers > > throw 1; < don't be evil' >{"http://typeracer.com:8080/typeracer-0.7/? > nocache=1203711257260":{"body" > > :"<iframe src=\"http://24.61.42.19:8080/ > typeracer-0.7/;jsessionid=ED94B702858027E4FA6B82927E854803? > opensocial_appid > > =12974852891316601462\"\r\n frameborder=\"0\"\r\n width= > \"100%\"\r\n height=\"580 > > \">\r\n<\/iframe>\r\n\r\n","rc":200}} > -------------------------------------- > > Could it be because the app is requesting too much data from the API? > The above error was encountered by someone who has a lot of friends on > Orkut. I don't get the error, presumably because I only have a > handful of orkut friends.... > > Or could it be be because it's trying to POST too much data through > gadgets.io.makeRequest? > > ------------------------------------- > > Here is my code that request the data (fyi there isn't currently any > app data being stored): > > function retrievePersistentData() { > var req = opensocial.newDataRequest(); > > req.add(req.newFetchPersonRequest('OWNER'), 'owner'); > req.add(req.newFetchPersonRequest('VIEWER'), 'viewer'); > > req.add(req.newFetchPeopleRequest("OWNER_FRIENDS"), > "owner_friends"); > req.add(req.newFetchPeopleRequest("VIEWER_FRIENDS"), > "viewer_friends"); > > req.add(req.newFetchPersonAppDataRequest("OWNER", "*"), > "owner_data"); > req.add(req.newFetchPersonAppDataRequest("VIEWER", "*"), > "viewer_data"); > req.add(req.newFetchPersonAppDataRequest("OWNER_FRIENDS", "*"), > "owner_friends_data"); > req.add(req.newFetchPersonAppDataRequest("VIEWER_FRIENDS", "*"), > "viewer_friends_data"); > > req.send(retrievePersistentDataCallback); > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---