Message 58665

Message id


You can manage the profiles in the Tryton client, by opening a new window. On the left you can add a new profile name and on the right you fill the variables, like host, database and username.

However, when you accidentally enter something WITH spaces into the host field and leave the field, you are done. Everything is greyed out, including the buttons. The weird thing is that the username field is still editable where I would expect the host field to be editable. There is also no possibility to remove the troubling entry because clicking on it will already cause the error. 

The error:

ERROR:tryton.common.common:  File "/home/ERP/tryton-5.6.1/tryton/gui/window/", line 309, in refresh_databases_end
    if self.test_server_version(host, port) is False:
  File "/home/ERP/tryton-5.6.1/tryton/gui/window/", line 279, in test_server_version
    version = rpc.server_version(host, port)
  File "/home/ERP/tryton-5.6.1/tryton/", line 67, in server_version
    result = connection.common.server.version()
  File "/usr/lib64/python3.8/xmlrpc/", line 1109, in __call__
    return self.__send(self.__name, args)
  File "/home/ERP/tryton-5.6.1/tryton/", line 291, in __request
    response = self.__transport.request(
  File "/usr/lib64/python3.8/xmlrpc/", line 1153, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python3.8/xmlrpc/", line 1165, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
  File "/usr/lib64/python3.8/xmlrpc/", line 1266, in send_request
    connection = self.make_connection(host)
  File "/home/ERP/tryton-5.6.1/tryton/", line 238, in make_connection
    fingerprint = https_connection(allow_http=True)
  File "/home/ERP/tryton-5.6.1/tryton/", line 208, in https_connection
    self._connection = host, HTTPSConnection(host,
  File "/usr/lib64/python3.8/http/", line 1367, in __init__
    super(HTTPSConnection, self).__init__(host, port, timeout,
  File "/usr/lib64/python3.8/http/", line 831, in __init__
  File "/usr/lib64/python3.8/http/", line 1193, in _validate_host
    raise InvalidURL(f"URL can't contain control characters. {host!r} "

InvalidURL: URL can't contain control characters. 'Test Server' (found at least ' ')

The only way out, it to edit manually the tryton.conf file and remove the entry there.
Date User Action Args
2020-06-12 18:17:18edbosetmessageid: <>
2020-06-12 18:17:17edbolinkissue9408 messages
2020-06-12 18:17:16edbocreate

Showing 10 items. Show all history (warning: this could be VERY long)