incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Gabriel <a...@barbalex.ch>
Subject Re: bulk import error
Date Mon, 25 Apr 2011 20:24:32 GMT
Hi Sebastian

CouchDb log says:

[Mon, 25 Apr 2011 20:20:10 GMT] [error] [<0.5010.0>] *function_clause error
in HT*
*TP request*

[Mon, 25 Apr 2011 20:20:10 GMT] [info] [<0.5010.0>] Stacktrace:
[{lists,map,[#Fu
n<couch_httpd_db.7.2522027>,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}]

[Mon, 25 Apr 2011 20:20:10 GMT] [info] [<0.5010.0>] 127.0.0.1 - - 'POST'
/evab/_
bulk_docs 500

there is a design coc but at the moment no validation functions.

Does that tell you something?

Thanks for answering!


2011/4/25 Sebastian Cohnen <sebastiancohnen@googlemail.com>

> Hey Alexander,
>
> What does your couchdb log say? Do you have any design docs in this db?
> What about validation functions?
>
> Typed on glass.
>
> Am 24.04.2011 um 23:17 schrieb Alexander Gabriel <alex@barbalex.ch>:
>
> > Hi
> > I've imported several bulk json files so far.
> >
> > This time I get an error I can't solve.
> > I'm using: curl -vX POST
> http://barbalex:dLhdMg12@127.0.0.1:5984/evab/_bulk_docs -H "Content-Type:
> application/json" -d @Feld.json
> >
> > And I get this:
> > C:\Users\alex\EvabMobile>curl -vX POST
> http://barbalex:dLhdMg12@127.0.0.1:5984/e
> > vab/_bulk_docs -H "Content-Type: application/json" -d @Feld.json
> > * About to connect() to 127.0.0.1 port 5984 (#0)
> > *   Trying 127.0.0.1... connected
> > * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
> > * Server auth using Basic with user 'barbalex'
> > > POST /evab/_bulk_docs HTTP/1.1
> > > Authorization: Basic YmFyYmFsZXg6ZExoZE1nMTI=
> > > User-Agent: curl/7.21.4 (i386-pc-win32) libcurl/7.21.4 zlib/1.2.5
> > > Host: 127.0.0.1:5984
> > > Accept: */*
> > > Content-Type: application/json
> > > Content-Length: 115221
> > > Expect: 100-continue
> > >
> > < HTTP/1.1 100 Continue
> > < HTTP/1.1 500 Internal Server Error
> > < Server: CouchDB/1.0.2 (Erlang OTP/R14B)
> > < Date: Sun, 24 Apr 2011 21:11:37 GMT
> > < Content-Type: text/plain;charset=utf-8
> > < Content-Length: 53
> > < Cache-Control: must-revalidate
> > <
> > {"error":"unknown_error","reason":"function_clause"}
> > * Connection #0 to host 127.0.0.1 left intact
> > * Closing connection #0
> >
> > The document passes the text on http://www.jsonlint.com/
> > It is attached.
> >
> > Any idea what is wrong?
> >
> > Help is much appreciated.
> >
> > <Feld.json>
>

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