Skip to Content
Menu
This question has been flagged
1 Reply
2032 Views

I am running into this error when calling a method through xmlrpc on an Odoo Online database:


[ERROR] 10:41:53 Error: XML-RPC fault: Traceback (most recent call last):
File "/home/odoo/src/odoo/saas-16.2/odoo/addons/base/controllers/rpc.py", line 148, in xmlrpc_2
response = self._xmlrpc(service)
File "/home/odoo/src/custom/trial/saas_trial/controllers/main.py", line 268, in _xmlrpc
res = super(OdooRPC, self)._xmlrpc(service)
File "/home/odoo/src/odoo/saas-16.2/odoo/addons/base/controllers/rpc.py", line 129, in _xmlrpc
return xmlrpc.client.dumps((result,), methodresponse=1, allow_none=False)
File "/usr/lib/python3.10/xmlrpc/client.py", line 981, in dumps
data = m.dumps(params)
File "/usr/lib/python3.10/xmlrpc/client.py", line 514, in dumps
dump(v, write)
File "/usr/lib/python3.10/xmlrpc/client.py", line 536, in __dump
f(self, value, write)
File "/usr/lib/python3.10/xmlrpc/client.py", line 607, in dump_struct
dump(v, write)
File "/usr/lib/python3.10/xmlrpc/client.py", line 536, in __dump
f(self, value, write)
File "/usr/lib/python3.10/xmlrpc/client.py", line 607, in dump_struct
dump(v, write)
File "/usr/lib/python3.10/xmlrpc/client.py", line 536, in __dump
f(self, value, write)
File "/usr/lib/python3.10/xmlrpc/client.py", line 540, in dump_nil
raise TypeError("cannot marshal None unless allow_none is enabled")
TypeError: cannot marshal None unless allow_none is enabled


I am assuming that somewhere on the server a setting has to be changed to allow none. However, since I am using Odoo Online, I don't have access to the server. Is there a way to circumvent this on the caller side, or can I access the relevant settings in my Odoo Online database to fix this?

Avatar
Discard
Best Answer

Hi Joren, I run into the same issue. Have you found a solution ?

Avatar
Discard