Skip to Content
Menu
This question has been flagged
1 Reply
1337 Views
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 314, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='emision.thefactoryhka.com.pa', port=443): Max retries exceeded with url: /ws/obj/v1.0/Service.svc?singleWsdl (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 110] Connection timed out'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/home/odoo/src/odoo/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/odoo/http.py", line 368, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/odoo/http.py", line 357, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/odoo/http.py", line 921, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/odoo/http.py", line 546, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1328, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1316, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/src/odoo/odoo/api.py", line 464, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/home/odoo/src/odoo/odoo/api.py", line 451, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/odoo/src/odoo/addons/sale/models/account_move.py", line 76, in action_post
    res = super(AccountMove, self).action_post()
  File "/home/odoo/src/odoo/addons/account/models/account_move.py", line 3202, in action_post
    other_moves._post(soft=False)
  File "/home/odoo/src/odoo/addons/stock_landed_costs/models/account_move.py", line 50, in _post
    posted = super()._post(soft)
  File "/home/odoo/src/enterprise/account_asset/models/account_move.py", line 37, in _post
    posted = super()._post(soft)
  File "/home/odoo/src/odoo/addons/sale/models/account_move.py", line 92, in _post
    posted = super()._post(soft)
  File "/home/odoo/src/odoo/addons/purchase_stock/models/account_invoice.py", line 173, in _post
    return super()._post(soft)
  File "/home/odoo/src/user/odoo-bought/l10n_pa_edi/models/account_move.py", line 273, in _post
    cliente = zeep.Client(wsdl=wsdl)
  File "/usr/lib/python3/dist-packages/zeep/client.py", line 68, in __init__
    self.wsdl = Document(wsdl, self.transport, settings=self.settings)
  File "/usr/lib/python3/dist-packages/zeep/wsdl/wsdl.py", line 80, in __init__
    document = self._get_xml_document(location)
  File "/usr/lib/python3/dist-packages/zeep/wsdl/wsdl.py", line 142, in _get_xml_document
    return load_external(
  File "/usr/lib/python3/dist-packages/zeep/loader.py", line 78, in load_external
    content = transport.load(url)
  File "/usr/lib/python3/dist-packages/zeep/transports.py", line 110, in load
    content = self._load_remote_data(url)
  File "/usr/lib/python3/dist-packages/zeep/transports.py", line 126, in _load_remote_data
    response = self.session.get(url, timeout=self.load_timeout)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 548, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 535, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 648, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='emision.thefactoryhka.com.pa', port=443): Max retries exceeded with url: /ws/obj/v1.0/Service.svc?singleWsdl (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 110] Connection timed out'))


Avatar
Discard
Best Answer

Hi,

As per shared traceback, it seems the l10n_pa_edi which is a third party app is the culprit.  It is trying to establish an external connection and it seems getting timed out.

You can report the issue with the app author and listen to his feedback

Thanks

Avatar
Discard