Closed jblom closed 3 months ago
not sure yet why this timeout occurred (maybe it's not every time):
Traceback (most recent call last):
File "/src/.venv/lib/python3.11/site-packages/elasticsearch7/connection/http_urllib3.py", line 255, in perform_request
response = self.pool.urlopen(
^^^^^^^^^^^^^^^^^^
File "/src/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/src/.venv/lib/python3.11/site-packages/urllib3/util/retry.py", line 525, in increment
raise six.reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/.venv/lib/python3.11/site-packages/urllib3/packages/six.py", line 770, in reraise
raise value
File "/src/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/src/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 469, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/src/.venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 358, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='esc-es-http.dane-es.svc.cluster.local', port=9200): Read timed out. (read timeout=30)
2024-07-05 08:59:18,958|INFO|7|base|log_request_success|265|POST http://esc-es-http.dane-es.svc.cluster.local:9200/dane-index-visxp/_doc?refresh=true&routing=21caef8d2ffae61c100f0090da592d526674c0f9 [status:201 request:23.269s]
2024-07-05 08:59:18,958|INFO|7|base_classes|_ack_with_status_msg|297|Send ACK + msg back to queue (async)
@Veldhoen I did add a try, except around the self.save_to_dane_index
in the worker.py
to at least catch any errors related to saving back to dane
@Veldhoen I also updated to python 3.11 I hope you have it on your system?
should fix: