The URL should be http://, not https. --Noah
On Apr 12, 2011, at 3:35 PM, mihai.rotaru wrote: > Hi everyone > > I'm new to trac, so I'm not sure whether this should be posted as a ticket > for the XmlRpcPlugin, please > let me know if that is the case. > > I'm getting a weird error while trying to use the XmlRpcPlugin to create a > ticket from the command-line. > > Here's the error: > > $ python trac-xml-rpc-digest.py > Traceback (most recent call last): > File "trac-xml-rpc-digest.py", line 42, in <module> > server.ticket.create( "a ticket", "description body" ) > File "c:\Python26\lib\xmlrpclib.py", line 1199, in __call__ > return self.__send(self.__name, args) > File "c:\Python26\lib\xmlrpclib.py", line 1489, in __request > verbose=self.__verbose > File "trac-xml-rpc-digest.py", line 37, in request > f=opener.open(request) > File "c:\Python26\lib\urllib2.py", line 391, in open > response = self._open(req, data) > File "c:\Python26\lib\urllib2.py", line 409, in _open > '_open', req) > File "c:\Python26\lib\urllib2.py", line 369, in _call_chain > result = func(*args) > File "c:\Python26\lib\urllib2.py", line 1169, in https_open > return self.do_open(httplib.HTTPSConnection, req) > File "c:\Python26\lib\urllib2.py", line 1136, in do_open > raise URLError(err) > urllib2.URLError: <urlopen error [Errno 1] _ssl.c:480: error:140770FC:SSL > routines:SSL23_GET_SERVER_HELLO:unknown protocol> > > I have attached trac-xml-rpc-digest.py; it's basically a slightly modified > version of the example for using XML-RPC found here. > > The environment is almost untouched, except that trac.ini is modified to > enable the XML-RPC plugin. Another thing to mention is that > the folder containing the trac environment ( new-trac ) is inside the > project's root folder ( new-project ). I can log in > and create tickets from the web interface, so I don't think authentication is > causing the issue. > > Command to run tracd: > $ tracd --port 8000 --auth "new-trac,C:\digest.txt,trac" > /d/code/sandbox/new-project/new-trac/ > > I have also attached a screenshot of the tracd console window. > > trac version: 0.12 > OS: Windows XP SP2 > I'm using the msys bash > > > > -- > You received this message because you are subscribed to the Google Groups > "Trac Users" group. > To post to this group, send email to trac-users@googlegroups.com. > To unsubscribe from this group, send email to > trac-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/trac-users?hl=en. > <trac-xml-rpc-digest.py><trac-xml-rpc-digest-error.jpg> -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.