Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marshall Error on OpenSPP Adaptor #720

Open
christad92 opened this issue Aug 14, 2024 · 0 comments
Open

Marshall Error on OpenSPP Adaptor #720

christad92 opened this issue Aug 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@christad92
Copy link

When running a function that requires a POST (createX where X can be individual, group, et.c) functionality in the OpenSPP adaptor, the process runs successfully but logs a marshall error.

See logs below

R/T Executing 863d2842-6f1f-455c-ba24-e320901057ab
R/T Starting step Push data to OpenSPP
R/T [linker] loading module @openfn/language-openspp
R/T [linker] Loading module @openfn/language-openspp from /tmp/openfn/worker/repo/node_modules/@openfn/language-openspp_2.0.0/dist/index.cjs
R/T Resolved adaptor @openfn/language-openspp to version 2.0.0
R/T Executing expression (1 operations)
R/T Starting operation 1
ADA ✗ Error: Error: XML-RPC fault: Traceback (most recent call last):
  File "/usr/local/lib/python3.10/xmlrpc/client.py", line 522, in __dump
    f = self.dispatch[type(value)]
KeyError: <class 'odoo.api.res.partner'>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/addons/base/controllers/rpc.py", line 147, in xmlrpc_2
    response = self._xmlrpc(service)
  File "/opt/odoo/custom/src/odoo/odoo/addons/base/controllers/rpc.py", line 128, in _xmlrpc
    return xmlrpc.client.dumps((result,), methodresponse=1, allow_none=False)
  File "/usr/local/lib/python3.10/xmlrpc/client.py", line 981, in dumps
    data = m.dumps(params)
  File "/usr/local/lib/python3.10/xmlrpc/client.py", line 514, in dumps
    dump(v, write)
  File "/usr/local/lib/python3.10/xmlrpc/client.py", line 526, in __dump
    raise TypeError("cannot marshal %s objects" % type(value))
TypeError: cannot marshal <class 'odoo.api.res.partner'> objects

R/T Operation 1 complete in 1.468s
R/T Expression complete!
R/T Removed configuration from final state
R/T Completed step Push data to OpenSPP in 4.202s
R/T Final memory usage: [step 18mb] [system 108mb]
R/T Run complete with status: success
@christad92 christad92 added the bug Something isn't working label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant