couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Cohnen <sebastiancoh...@googlemail.com>
Subject Re: bulk import error
Date Mon, 25 Apr 2011 08:05:59 GMT
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, 7-Bit, 0 bytes)
View raw message