Modify

Opened 16 years ago

Closed 15 years ago

#2746 closed defect (worksforme)

'cannot marshal <class 'xmlrpclib.Fault'> objects' while executing system.multicall()'

Reported by: nagamasa2005@… Owned by: Alec Thomas
Priority: high Component: XmlRpcPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11

Description

Accessing my Trac 0.11b1 repository through the Mylar plugin for Eclipse using XmlRpcPlugin , I got this error message when trying to create query of tickets. Python version is 2.5.1 .

'cannot marshal <class 'xmlrpclib.Fault'> objects' while executing system.multicall()'

This message may be wrong. See http://mail.python.org/pipermail/python-bugs-list/2007-June/038875.html .
It touched 'api.py' for the time being as follows. But, I'm not sure.

    def multicall(self, req, signatures):
        """ Takes an array of XML-RPC calls encoded as structs of the form (in
        a Pythonish notation here):

        {'methodName': string, 'params': array}
        """
        for signature in signatures:
            try:
                yield self.get_method(signature['methodName'])(req, signature['params'])
            except xmlrpclib.Fault, e:
                #-#yield e
                yield xmlrpclib.dumps(("fault", str(e))) #-# MODIFY
            except Exception, e:
                #-#yield xmlrpclib.Fault(2, "'%s' while executing '%s()'" % (str(e), signature['methodName']))
                yield xmlrpclib.dumps(("fault", str(e))) #-# MODIFY

# ( I resolved real problem referring #1075 .)

Attachments (0)

Change History (3)

comment:1 Changed 16 years ago by anonymous

Priority: lowhigh

I have got same error, how deal with this?

comment:2 Changed 16 years ago by anonymous

I change the XmlRpcPlugin from 0.10 to trunk.Then it works.

comment:3 Changed 15 years ago by osimons

Resolution: worksforme
Status: newclosed

I'm quite sure this is an installation issue. As far as I can see, errors are transmitted correctly using fresh Trac 0.11.x and trunk version of the plugin. Please reopen if problem persists with latest versions.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.