I faced this issue with my program too.
Database created but server returns 400 error code.
To reproduce this issue you can delete database, which application used.
Traceback (most recent call last):
File "./bin/engnotify", line 55, in <module>
en = Engnotify()
File "/home/yura/Projects/python/engnotify/engnotify/engnotify.py", line 40, in __init__
self.database = CouchDatabase('engnotify', create=True)
File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server.py", line 57, in __init__
server_class=server_class, oauth_tokens=oauth_tokens, ctx=ctx)
File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 153, in __init__
self._reconnect()
File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server_base.py", line 183, in _reconnect
if self._database_name not in self._server:
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 124, in __contains__
self.resource.head(validate_dbname(name))
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 981, in head
return self._request('HEAD', path, headers=headers, **params)
File "/usr/lib/pymodules/python2.6/couchdb/client.py", line 1035, in _request
raise ServerError((status_code, error))
couchdb.client.ServerError: (400, '')
I faced this issue with my program too.
Database created but server returns 400 error code.
To reproduce this issue you can delete database, which application used.
Traceback (most recent call last): yura/Projects/ python/ engnotify/ engnotify/ engnotify. py", line 40, in __init__ 'engnotify' , create=True) python2. 6/dist- packages/ desktopcouch/ records/ server. py", line 57, in __init__ class=server_ class, oauth_tokens= oauth_tokens, ctx=ctx) python2. 6/dist- packages/ desktopcouch/ records/ server_ base.py" , line 153, in __init__ _reconnect( ) python2. 6/dist- packages/ desktopcouch/ records/ server_ base.py" , line 183, in _reconnect pymodules/ python2. 6/couchdb/ client. py", line 124, in __contains__ resource. head(validate_ dbname( name)) pymodules/ python2. 6/couchdb/ client. py", line 981, in head 'HEAD', path, headers=headers, **params) pymodules/ python2. 6/couchdb/ client. py", line 1035, in _request (status_ code, error)) client. ServerError: (400, '')
File "./bin/engnotify", line 55, in <module>
en = Engnotify()
File "/home/
self.database = CouchDatabase(
File "/usr/lib/
server_
File "/usr/lib/
self.
File "/usr/lib/
if self._database_name not in self._server:
File "/usr/lib/
self.
File "/usr/lib/
return self._request(
File "/usr/lib/
raise ServerError(
couchdb.