Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionError: HTTPConnectionPool(host='<domain>', port=<port>): Max retries exceeded with url: /... #2418

Closed
sentryk8sonalabsorg bot opened this issue May 9, 2023 · 0 comments · Fixed by #2419
Assignees

Comments

@sentryk8sonalabsorg
Copy link

Sentry Issue: ONADATA-3A3

ParsedInstance.DoesNotExist: ParsedInstance matching query does not exist.
  File "django/db/models/query.py", line 581, in get_or_create
    return self.get(**kwargs), False
  File "django/db/models/query.py", line 435, in get
    raise self.model.DoesNotExist(

gaierror: [Errno -2] Name or service not known
  File "urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc4ebb6dc00>: Failed to establish a new connection: [Errno -2] Name or service not known
(5 additional frame(s) were not displayed)
...
  File "http/client.py", line 1278, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "http/client.py", line 1038, in _send_output
    self.send(msg)
  File "http/client.py", line 976, in send
    self.connect()
  File "urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
  File "urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(

MaxRetryError: HTTPConnectionPool(host='<domain>', port=<port>): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc4ebb6dc00>: Failed to establish a new connection: [Errno -2] Name or service not known'))
  File "requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

ConnectionError: HTTPConnectionPool(host='<domain>', port=<port>): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc4ebb6dc00>: Failed to establish a new connection: [Errno -2] Name or service not known'))
(2 additional frame(s) were not displayed)
...
  File "onadata/apps/restservice/utils.py", line 24, in call_service
    service.send(service_def.service_url, submission_instance)
  File "onadata/apps/restservice/services/generic_json.py", line 24, in send
    requests.post(url, headers=headers, data=post_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant