XML-RPC plugin does not work

42 views
Skip to first unread message

Mattias Vannergård

unread,
Apr 10, 2015, 2:12:17 PM4/10/15
to ag...@googlegroups.com
I have a trac 1.0.2 installation with two projects with agilo PRO enabled, for one of the projects XmlRpc works just fine, most of the time.

I get:
2015-04-10 17:08:16,937 Trac[query] DEBUG: Count results in Query: 2
2015-04-10 17:08:16,938 Trac[xml_rpc] DEBUG: RPC(xml) 'ticket.query' result: [1, 2]

and later the result is sent back, with all the content of tickets 1 and 2.

2015-04-10 17:08:16,994 Trac[xml_rpc] DEBUG: RPC(xml) 'system.multicall' result: [([1, datetime.datetime...<snip>...])]

But for the other, the result is empty, even if the count is correct:
2015-04-10 17:06:47,399 Trac[query] DEBUG: Count results in Query: 270
2015-04-10 17:06:47,442 Trac[xml_rpc] DEBUG: RPC(xml) 'ticket.query' result: []
but this, of course, also sends back an empty result, because the 270 tickets aren't actually listed in the result handled by web_ui,py.

2015-04-10 17:06:47,483 Trac[xml_rpc] DEBUG: RPC(xml) 'system.multicall' result: []

I do get this from time to time, even if it say s here: https://trac-hacks.org/wiki/AgiloForTracPlugin and here: https://trac-hacks.org/ticket/8550 , that task types should be able to get via XML-RPC.

2015-04-10 19:34:54,267 Trac[web_ui] ERROR: RPC(XML-RPC) Unhandled protocol error
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/tracrpc/web_ui.py", line 167, in _rpc_process
    protocol.send_rpc_result(req, result)
  File "build/bdist.linux-x86_64/egg/tracrpc/xml_rpc.py", line 133, in send_rpc_result
    xmlrpclib.dumps(result, methodresponse=True), rpcreq['mimetype'])
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1090, in dumps
    data = m.dumps(params)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 637, in dumps
    dump(v, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 659, in __dump
    f(self, value, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 719, in dump_array
    dump(v, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 659, in __dump
    f(self, value, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 719, in dump_array
    dump(v, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 659, in __dump
    f(self, value, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 719, in dump_array
    dump(v, write)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 657, in __dump
    raise TypeError, "cannot marshal %s objects" % type(value)
TypeError: cannot marshal <class 'agilo.ticket.model.TicketValueWrapper'> objects


BR
/Mattias

Claudio Di Cosmo

unread,
Apr 13, 2015, 5:49:24 AM4/13/15
to ag...@googlegroups.com
Hi Mattias,
Can you please post a screenshot of the /about page of the second project? (the one which is not returning the tickets requested)

Thank you,

Claudio Di Cosmo
Software Engineer
Agilo Software GmbH
Gruenberger Str. 54
10245 Berlin, Germany

claudio...@agilosoftware.com
http://www.agilosoftware.com

Follow us on twitter: http://twitter.com/agiloforscrumhttp://twitter.com/agilofortrac

Amtsgericht Charlottenburg: HRB 127146
CEO Marion Eickmann, Andrea Tomasini
Message has been deleted

Mattias Vannergård

unread,
Apr 13, 2015, 6:25:38 AM4/13/15
to ag...@googlegroups.com

I have restarted the apache-server a couple of times due to problems with Jenkins, and now the XML-RPC-queries seems to run smoother. I might have changed something in the conf/trac.ini making the XML-RPC plugin misbehave.

BR
/Mattias 
Reply all
Reply to author
Forward
0 new messages