• Register

ACTIVE Network API Forums

Activity Search API v2

RSS Feed

&fields Parameter Causing Error Undefined Method

    • jamesphumphrey
    • Topic created 9 years ago

    I have a query that was working a couple weeks ago and is now returning the following error: undefined method `[]=' for nil:NilClass I removed the &fields parameter and the problem went away. If I try to add &fields back, the problem reoccurs. Here is my query: http://api.amp.active.com/v2/search?query=tennis&category=tournaments&start_date=2015-04-02..&lat_lon=30.3021867862915,-97.7467346191406&radius=50&api_key={apikey}&per_page=200&sort=date_asc&fields=asset.assetLegacyData.participationCriteriaTxt,asset.registrationUrlAdr,asset.place.latitude,asset.place.longitude,asset.activityEndDate,asset.assetName,asset.contactPhone,asset.activityStartDate

    Message edited by jamesphumphrey 1 year ago

  1. Frambot8 years ago

    I also see the same issue. The original post is 9 months old at the time of this writing.

  2. Glen DiPalma7 years ago

    Can you provide an example on how to use the &fields= sample. what fields can you place here? It is not working for me.

  3. Glen DiPalma7 years ago

    I am getting this error - {"error":{"message":"undefined method `[]=' for nil:NilClass"}}

  4. astarnes7 years ago

    fields is not a currently valid search parameter. Please review the interaction I/O docs here: http://developer.active.com/io-docs and additional documentation here: http://developer.active.com/docs/v2_activity_api_search for more information on available query parameters.

[ Page 1 of 1 ]