[ckan-dev] Subject: Re: problem inserting a row in the dataset

Dominik Moritz dominik.moritz at okfn.org
Mon Jun 3 08:23:52 UTC 2013


Hi,

again, you have to read
http://www.w3schools.com/tags/ref_httpmethods.asp to understand the
difference between POST and GET. You are still sending a GET request
to datastore_upsert. You can only send GET requests to
datastore_search.

Hope that helps,
Dominik


On 3 June 2013 03:54,  <fwolanczyk at cs.com> wrote:
> hi all,
> okay, still problems - i tried the "post" in my ios request, and it isn't
> that,
>
> more simply, if you just put the following line in a browser, you get output
> - the query works fine, the problem is with the insert
>
> http://sandboxdw.pediacities.com/api/3/action/datastore_search?resource_id=16d8ab0b-38bd-41b4-9b0c-49ff0420d4f1&limit=5
>
> result is the 5 rows...
>
>  the problem is with the insert
>
> http://sandboxdw.pediacities.com/api/3/action/datastore_upsert?resource_id=16d8ab0b-38bd-41b4-9b0c-49ff0420d4f1&records=[{\"Division\":\"BMTFake\",\"Line\":\"BroadwayFake\",\"Station_Name\":\"49th
> St\",\"Station_Latitude\":\"40.760621\",\"Station_Longitude\":\"-73.984139\"}]&method=insert
>
> this line returns
>
> "Bad request - JSON Error: No request body data"
>
>
>
> im at my wits end... help!!
>
> fran w
>
>
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>




More information about the ckan-dev mailing list