Discussion:
[Agilo for Trac] XML-RPC plugin does not work
Mattias Vannergård
2015-04-10 18:12:17 UTC
Permalink
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
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send an email to
agilo+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mattias Vannergård
2015-04-13 10:22:20 UTC
Permalink
<https://lh3.googleusercontent.com/-z0ldS2Wui5c/VSuYXeVzXOI/AAAAAAAAAKQ/qoAKECAoIiY/s1600/About_screenshot.bmp>

I have restarted the apache-server a couple of times, and now it runs
smoother actually, so it might have been some initializing issues.

BR
/Mattias
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send an email to
agilo+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mattias Vannergård
2015-04-13 10:25:38 UTC
Permalink
<https://lh3.googleusercontent.com/-4h35Qjiud-A/VSuZXQR3GbI/AAAAAAAAAKY/FtZTC9Ix590/s1600/About_screenshot.bmp>
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
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send an email to
agilo+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...