• Register

ACTIVE Network API Forums

API Forum

RSS Feed

Activity searches returning 200 with no body content

    • jonrklein
    • Topic created 12 years ago

    As of somewhat recently, many activity searches are rendering a 200 response with an empty body. The following request returns an empty body:

    curl 'http://api.amp.active.com/search/?v=json&r=26.16&f=activities&s=date_asc&m=meta%3Achannel%3DRunning+meta%3AstartDate%3Adaterange%3A4%2F17%2F2013..5%2F17%2F2013&num=50&l=42.35%3B-71.13&api_key=p34gnrvucxfc89nqyb2gaea2'

    This other request works as expected -- note that the only change is that the longitude has been changed by 0.01:

    curl 'http://api.amp.active.com/search/?v=json&r=26.16&f=activities&s=date_asc&m=meta%3Achannel%3DRunning+meta%3AstartDate%3Adaterange%3A4%2F17%2F2013..5%2F17%2F2013&num=50&l=42.35%3B-71.12&api_key=p34gnrvucxfc89nqyb2gaea2'

    Note also that a search that legitimately returns no matches should still render a JSON body with an empty results array. We can see this by taking the successful request and setting the radius to be 0.01:

    curl 'http://api.amp.active.com/search/?v=json&r=0.01&f=activities&s=date_asc&m=meta%3Achannel%3DRunning+meta%3AstartDate%3Adaterange%3A4%2F17%2F2013..5%2F17%2F2013&num=50&l=42.35%3B-71.12&api_key=p34gnrvucxfc89nqyb2gaea2' {"endIndex":0,"numberOfResults":0,"pageSize":50,"searchTime":54,"_results":[]}

    Message edited by jonrklein 12 years ago

  1. jarredd12 years ago

    Hi Jon,

    Both of the API calls that you listed above appear to be working. Are you still experiencing any issues?

    Best regards, Jarred

[ Page 1 of 1 ]