Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Timeout Error

by
Mohamed Alkobrosly
- 07/11/2024 20:47:10
I wonder how to run tests successfully without encountering timeout error.

I saw this error with all tests that need connection with the testing server:

2024-11-07 18:58:57,184 23973 ERROR test_api_2 odoo.addons.fastapi_auth_jwt_demo.tests.test_fastapi_auth_jwt_demo: ERROR: TestEndToEnd.test_forbidden
Traceback (most recent call last):
  File "/home/kobros/Workspace/odoo16/env16/lib/python3.10/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/kobros/Workspace/odoo16/env16/lib/python3.10/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.10/http/client.py", line 1375, in getresponse
    response.begin()
  File "/usr/lib/python3.10/http/client.py", line 318, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.10/http/client.py", line 279, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.10/socket.py", line 705, in readinto
    return self._sock.recv_into(b)
TimeoutError: timed out

Any help, please?