Proteus xml_rpc connection problem 7.8

Hi folks,
I need your help. I am not able to connect to a newly created 7.8 database using proteus. The same setup works for 7.6. As you ca see database exists localhost in running on 8078. You have to trust me that admin is correct and this very complicated password too. What am I doing wrong.
Regards Jakob

Type "help", "copyright", "credits" or "license" for more information.
>>> from proteus import config
>>> config.set_xmlrpc('http://admin:admin123@localhost:8078/veridb78/')
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    config.set_xmlrpc('http://admin:admin123@localhost:8078/veridb78/')
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jakobfischer/Entwicklung/tryton78/lib/python3.13/site-packages/proteus/config.py", line 393, in set_xmlrpc
    _CONFIG.current = XmlrpcConfig(url, **kwargs)
                      ~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/Users/jakobfischer/Entwicklung/tryton78/lib/python3.13/site-packages/proteus/config.py", line 360, in __init__
    self._context = self.server.model.res.user.get_preferences(True, {})
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xmlrpc/client.py", line 1096, in __call__
    return self.__send(self.__name, args)
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xmlrpc/client.py", line 1435, in __request
    response = self.__transport.request(
        self.__host,
    ...<2 lines>...
        verbose=self.__verbose
        )
  File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xmlrpc/client.py", line 1140, in request
    return self.single_request(host, handler, request_body, verbose)
           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.5/Frameworks/Python.framework/Versions/3.13/lib/python3.13/xmlrpc/client.py", line 1170, in single_request
    raise ProtocolError(
    ...<3 lines>...
        )
xmlrpc.client.ProtocolError: <ProtocolError for admin:admin123@localhost:8078/veridb78/: 500 INTERNAL SERVER ERROR>
>>>

Type "help", "copyright", "credits" or "license" for more information.
>>> from proteus import config
>>> cfg = config.set_trytond('postgresql:///veridb78',config_file='trytond.conf')
>>>

this way works, but xml_rpc seems to have a problem.

Is there any error message on the trytond side ?

Have you the fix from User preferences: cannot pickle 'mappingproxy' object (#14433) · Issues · Tryton / Tryton · GitLab

That’s the servers side


ction WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:8078
 * Running on http://192.168.2.163:8078
23867 8686248128 [2025-12-22 17:51:18,143] INFO werkzeug Press CTRL+C to quit
23867 6146928640 [2025-12-22 17:51:24,575] INFO werkzeug 127.0.0.1 - - [22/Dec/2025 17:51:24] "POST /veridb78/ HTTP/1.1" 500 -
23867 6146928640 [2025-12-22 17:51:24,584] ERROR werkzeug Error on request:
Traceback (most recent call last):
  File "/Users/jakobfischer/Entwicklung/tryton78/lib/python3.13/site-packages/werkzeug/serving.py", line 370, in run_wsgi
    execute(self.server.app)
    ~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Users/jakobfischer/Entwicklung/tryton78/lib/python3.13/site-packages/werkzeug/serving.py", line 333, in execute
    for data in application_iter:
                ^^^^^^^^^^^^^^^^
  File "/Users/jakobfischer/Entwicklung/tryton78/lib/python3.13/site-packages/werkzeug/wsgi.py", line 256, in __next__
    return self._next()
           ~~~~~~~~~~^^
  File "/Users/jakobfischer/Entwicklung/tryton78/lib/python3.13/site-packages/werkzeug/wrappers/response.py", line 32, in _iter_encoded
    for item in iterable:
                ^^^^^^^^
  File "/Users/jakobfischer/Entwicklung/tryton78/lib/python3.13/site-packages/trytond/protocols/wrappers.py", line 324, in __iter__
    data = chunk.encode('utf-8')
           ^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'encode'

You’re missing the end of the traceback (which is the most interesting part :smiley:).

  File "/Users/jakobfischer/Entwicklung/tryton78/lib/python3.13/site-packages/trytond/protocols/wrappers.py", line 324, in __iter__
    data = chunk.encode('utf-8')
           ^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'encode'

I appended it as well in the post above :slight_smile:

Here is XML-RPC protocols fails when gzip answer (#14445) · Issues · Tryton / Tryton · GitLab

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.