desktopcouch applications throw 401 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
desktopcouch |
Invalid
|
High
|
Chad Miller | ||
desktopcouch (Ubuntu) |
Invalid
|
High
|
Chad Miller |
Bug Description
Binary package hint: desktopcouch
Tried two programs that are desktopcouch consumers, both of them failed to run and returned:
Traceback (most recent call last):
File "bin/jotty", line 189, in <module>
window = NewJottyWindow()
File "bin/jotty", line 174, in NewJottyWindow
window.
File "bin/jotty", line 69, in finish_initializing
self.database = CouchDatabase(
File "/usr/lib/
server_
File "/usr/lib/
if database not in self._server:
File "/usr/lib/
self.
File "/usr/lib/
return self._request(
File "/usr/lib/
raise ServerError(
couchdb.
ProblemType: Bug
Architecture: i386
Date: Wed Oct 14 18:18:25 2009
DistroRelease: Ubuntu 9.10
Package: desktopcouch 0.4.4-0ubuntu1
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: desktopcouch
Uname: Linux 2.6.31-14-generic i686
Changed in desktopcouch: | |
status: | New → Won't Fix |
assignee: | nobody → Chad Miller (cmiller) |
Changed in desktopcouch (Ubuntu): | |
status: | Invalid → Confirmed |
Changed in desktopcouch: | |
status: | Won't Fix → Confirmed |
importance: | Undecided → High |
Changed in desktopcouch: | |
status: | Confirmed → Incomplete |
Changed in desktopcouch (Ubuntu): | |
status: | Confirmed → Incomplete |
Note that this occurs on brand new code, essentially creating a new CouchDatabase like this: self.__ db_name, create=True)
self.__database = CouchDatabase(
I also got the same error trying it directly in iPython:
In [3]: import desktopcouch. records
In [4]: desktopcouch. records. server. CouchDatabase( "foob") ------- ------- ------- ------- ------- ------- ------- ------- ------- -----
-------
ServerError Traceback (most recent call last)
/home/rick/<ipython console> in <module>()
/usr/lib/ python2. 6/dist- packages/ desktopcouch/ records/ server. pyc in __init__(self, database, uri, record_factory, create, server_class, oauth_tokens) find_port( ) localhost:%s" % port base, self).__init__( factory= record_ factory, create=create, class=server_ class, oauth_tokens= oauth_tokens)
50 port = desktopcouch.
51 uri = "http://
52 super(CouchData
53 database, uri, record_
---> 54 server_
/usr/lib/ python2. 6/dist- packages/ desktopcouch/ records/ server_ base.pyc in __init__(self, database, uri, record_factory, create, server_class, **server_ class_extras) class(self. server_ uri, **server_ class_extras) create( database)
120 self.server_uri = uri
121 self._server = server_
--> 122 if database not in self._server:
123 if create:
124 self._server.
/usr/lib/ pymodules/ python2. 6/couchdb/ client. pyc in __contains__(self, name) head(validate_ dbname( name))
122 """
123 try:
--> 124 self.resource.
125 return True
126 except ResourceNotFound:
/usr/lib/ pymodules/ python2. 6/couchdb/ client. pyc in head(self, path, headers, **params) 'HEAD', path, headers=headers, **params)
979
980 def head(self, path=None, headers=None, **params):
--> 981 return self._request(
982
983 def post(self, path=None, content=None, headers=None, **params):
/usr/lib/ pymodules/ python2. 6/couchdb/ client. pyc in _request(self, method, path, content, headers, **params) led(error) (status_ code, error))
1033 raise PreconditionFai
1034 else:
-> 1035 raise ServerError(
1036
1037 return resp, data