Hey there all. Looking for a little insight.
In our app, one of the first things we do, is make a dataRequest for the viewer. However, it seems like we're getting a whole bunch of intermittant failures on this.
The code looks something like this:
var dataRequest = opensocial.newDataRequest();
var ownerRequest = dataRequest.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER);
var params = {};
params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [MyOpenSpace.Person.Field.AGE,MyOpenSpace.Person.Field.GENDER];
viewerRequest = dataRequest.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER, params);
dataRequest.add(ownerRequest);
dataRequest.add(viewerRequest);
dataRequest.send(function(data) {
...callback...
}
The response that's coming back is:
<error xmlns="api-v1.myspace.com"><statuscode>401</statuscode><statusdescription>Invalid Opensocial token.
Invalid length for a Base-64 char array.</statusdescription></error>
Again, this seems to be pretty intermittant (every other page reload, or so). Is this a known issue like the "server too busy" problems for makeRequest?
thanks!