incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Ogden <...@maxogden.com>
Subject Re: Error when uploading json data file
Date Tue, 18 Oct 2011 02:41:23 GMT
Your data has to be formatted like this:

{"docs": [{"hello": "world"}, {"hello": "world"}, {"hello": "world"}]}

Also if you set log_level to debug in your couch settings then you may get a
more helpful error message

On Mon, Oct 17, 2011 at 7:38 PM, Pulkit Singhal <pulkitsinghal@gmail.com>wrote:

> I see the following log on the server side:
>
> [info] [<0.17288.0>] Stacktrace: [{lists,map,
>                                      [#Fun<couch_httpd_db.7.109081894>,
>                                       undefined]},
>                                  {couch_httpd_db,db_req,2},
>                                  {couch_httpd_db,do_db_req,2},
>                                  {couch_httpd,handle_request_int,5},
>                                  {mochiweb_http,headers,5},
>                                  {proc_lib,init_p_do_apply,3}]
>
> When I run the following simple command to upload data from a file:
> curl -d @productSample.json -X POST localhost:5984/bbyopen/_bulk_docs
> -H "Content-Type: application/json"
>
> Can anyone help me figure out what the problem is?
>
> Thanks!
> - Pulkit
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message