Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

ConnectionError: HTTPConnectionPool(host='tika-server', port=9998): Max retries exceeded with url: /rmeta/text (Ca... #398

Closed
sentry-io bot opened this issue Sep 18, 2021 · 1 comment
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 18, 2021

Sentry Issue: MARIA-QUITERIA-92

gaierror: [Errno -5] No address associated with hostname
  File "urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb019601c70>: Failed to establish a new connection: [Errno -5] No address associated with hostname
(5 additional frame(s) were not displayed)
...
  File "http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "http/client.py", line 1010, in _send_output
    self.send(msg)
  File "http/client.py", line 950, in send
    self.connect()
  File "urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "urllib3/connection.py", line 181, in _new_conn
    raise NewConnectionError(

MaxRetryError: HTTPConnectionPool(host='tika-server', port=9998): Max retries exceeded with url: /rmeta/text (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb019601c70>: Failed to establish a new connection: [Errno -5] No address associated with hostname'))
  File "requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

ConnectionError: HTTPConnectionPool(host='tika-server', port=9998): Max retries exceeded with url: /rmeta/text (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb019601c70>: Failed to establish a new connection: [Errno -5] No address associated with hostname'))
(4 additional frame(s) were not displayed)
...
  File "requests/api.py", line 132, in put
    return request('put', url, data=data, **kwargs)
  File "requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
@anapaulagomes
Copy link
Contributor

Esse problema acontece quando tentamos acessar o Tika mas a API não está disponível (o serviço caiu e não foi restaurado ou não foi iniciado depois de um novo deploy). @gomex

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants