MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Intermittant 401 errors from DataRequest?

Last post 08-20-2008 4:49 PM by barclay. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-11-2008 12:15 PM

    Intermittant 401 errors from DataRequest?

     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!

    Filed under: , , ,
  • 08-15-2008 10:52 AM In reply to

    Re: Intermittant 401 errors from DataRequest?

    And this seems to happen every time after we roll. 

  • 08-20-2008 4:49 PM In reply to

    Re: Intermittant 401 errors from DataRequest?

    *bump*

    Filed under:
Page 1 of 1 (3 items)