MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

idSpec user array too long.

Last post 05-31-2008 5:53 PM by Smart. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-31-2008 4:10 PM

    • Smart
    • Top 75 Contributor
    • Joined on 02-04-2008
    • Posts 54

    idSpec user array too long.

    There appears to be a limit to the number of Person IDs I can pull from opensocial.  Where is this documented?  Is this part of the Google API specification?

    On examination, the limit seems to be 10 before an error is thrown on response:
    idSpec user array too long. 

    I don't mean to complain, but on a platform that allows you to have 70K friends, making developers query 10 ids is very prohibative.  If I need 100 users, 10 queries is 10 times more likely to fail than is 1 query for 100 ids at a time. 

    Lately, 1 in 10 queries to myspace's open social servers fail. I've posted about this a different thread, but it is related.  How do  developers provide a reliable experience for the end-user if the underlaying platform continues to hamstring us?

    I wish there was a public bug database and some transparency into what motivates platform changes. 

    *update*

    Batch your queries into multiple request groups. i.e.:

     req.add(req.newFetchPeopleRequest(xidGroup), "os_data");
    where xidGroup is max length 10.

    *UPDATE*

    Nope. No way to do it.  Batching them in one request fails without error. Awesome.

     

  • 05-31-2008 4:59 PM In reply to

    Re: idSpec user array too long.

     Check out the reference documentation on the reference link on the nav bar :)

    Rhonda 

  • 05-31-2008 5:53 PM In reply to

    • Smart
    • Top 75 Contributor
    • Joined on 02-04-2008
    • Posts 54

    Re: idSpec user array too long.

    Right, I see the below, but I don't see mention of a limit in your spec nor the Google API.

     

    opensocial.DataRequest.newFetchPeopleRequest(idSpec, opt_params)

    Creates an item to request friends from the server. When processed, returns a Collection <Person> object.
    parameters
    Array.<String>, String idSpec An ID, array of IDs, or a group reference used to specify which people to fetch; the supported keys are VIEWER, OWNER, VIEWER_FRIENDS, OWNER_FRIENDS, or a single ID within one of those groups.
    Map.<opensocial.DataRequest.PeopleRequestFields, Object> opt_params Additional params to pass to the request
    returns
    Object A request object

     

Page 1 of 1 (3 items)