Hi John. Are you also having intermittent problems with
gadgets.util.makeRequest() as Jim detailed above?
As it turns out, the "List Friends" application is failing because of
a separate issue. It should output as expected if you change the
second statement in getData() to fetch a group using
newFetchPeopleRequest():
function getData() {
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
'viewer');
req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS),
'viewerFriends');
req.send(onLoadFriends);
}
Thanks for the catch! Our documentation should be updated very soon.
Cheers!
- Jason
On Mar 3, 11:37 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Problem still persists
> ------------------------------
>
> Even the
>
> Complete Code for List Friends (version
> 0.7)http://code.google.com/apis/opensocial/docs/0.7/devguide.html#ListFri...
>
> fails to return any of my friends :(
>
> Any workaround???
>
> -John
>
> On Mar 4, 12:17 am, Jason <[EMAIL PROTECTED]> wrote:
>
> > Hi Jim. Are you still experiencing these sporadic issues?
>
> > - Jason
>
> > On Feb 29, 9:42 pm, Jim <[EMAIL PROTECTED]> wrote:
>
> > > I am getting this same error when using makeRequest() with POST... so
> > > "response.data"
> > > become undefined.
>
> > > The response test found in firebug is,
>
> > > <HTML>
> > > <HEAD>
> > > <TITLE>Internal Server Error</TITLE>
> > > </HEAD>
> > > <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> > > <H1>Internal Server Error</H1>
> > > <H2>Error 500</H2>
> > > </BODY>
> > > </HTML>
>
> > > I happens sometimes... Guys, any idea??
>
> > > ~ JIm
>
> > > On Feb 28, 8:12 pm, pradeep <[EMAIL PROTECTED]> wrote:
>
> > > > Sorry guys
>
> > > > var opt_params = { };
> > > > opt_params[opensocial.DataRequest.PeopleRequestFields.FILTER]
> > > > =[opensocial.DataRequest.FilterType.HAS_APP];
>
> > > > req.add(req.newFetchPersonAppDataRequest(opensocial.DataRequest.Group.OWNER_FRIENDS,
> > > > 'gifts',opt_params), 'viewerFriendData');
>
> > > > this code worked. Sorry for wasting a thread.
>
> > > > On Feb 28, 8:09 pm, pradeep <[EMAIL PROTECTED]> wrote:
>
> > > > > req.add(req.newFetchPersonAppDataRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS,
> > > > > 'gifts'), 'viewerFriendData');
>
> > > > > and
>
> > > > > req.add(req.newFetchPersonAppDataRequest(opensocial.DataRequest.Group.OWNER_FRIENDS,
> > > > > 'gifts'), 'viewerFriendData');
>
> > > > > both are not returning any results. Instead the reply is "Internal
> > > > >ServerError" in the firebugerrorconsole.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---