couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Hinrichs - DM&T" <je...@dundeemt.com>
Subject 405 Method Not Allowed
Date Sat, 10 Jan 2009 04:35:55 GMT
I've been using couchdb-python and ran into the 405 when I tried to
attachments.  At first I thought it was the couchdb-python interface or my
naive use of same.  So I tried curl, see below...

(couch1)jlh@jlh-d520:~/Projects/venvs/couch1$ curl -H "Content-Type:
application/octet-stream" -T fm.txt
localhost:5984/delasco-tests/12b7b28c79ff3fdebe5240bc27a0aa44/ -v
* About to connect() to localhost port 5984 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 5984 (#0)
> PUT /delasco-tests/12b7b28c79ff3fdebe5240bc27a0aa44/fm%2Etxt HTTP/1.1
> User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g
zlib/1.2.3.3 libidn/1.1
> Host: localhost:5984
> Accept: */*
> Content-Type: application/octet-stream
> Content-Length: 7336
> Expect: 100-continue
>
< HTTP/1.1 405 Method Not Allowed
< Server: CouchDB/0.8.1-incubating (Erlang OTP/R11B)
< Date: Sat, 10 Jan 2009 04:14:46 GMT
< Content-Length: 0
< Allow: GET,HEAD
<
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
  0  7336    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
0* Connection #0 to host localhost left intact

* Closing connection #0

I was at 0.8 and getting the 405's so I  upped my couchdb to the latest in
svn and the couchdb-python interface appeared to work, attachemnts didn't
create errors but futon was borked when viewing with Firefox 3.0.5 -- it
wouldn't list the contents of the couchdbs and views didn't work in futon.
So I downgraded back to 0.8.1 by svn tags.

I'm betting i've done something rather wrong in my setup or in my use of the
python interface or curl, so if someone wouldn't mind getting out a clue
stick and pointing me in the right direction, I'd appreciate it :)

-Jeff

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