Application Error:
Traceback (most recent call last):
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/connection.py", line 204, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/alt/python311/lib64/python3.11/socket.py", line 974, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -2] Name or service not known
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 788, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 488, in _make_request
raise new_e
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 464, in _make_request
self._validate_conn(conn)
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1106, in _validate_conn
conn.connect()
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/connection.py", line 759, in connect
self.sock = sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/connection.py", line 211, in _new_conn
raise NameResolutionError(self.host, self, e) from e
urllib3.exceptions.NameResolutionError: HTTPSConnection(host='api.opentext.com', port=443): Failed to resolve 'api.opentext.com' ([Errno -2] Name or service not known)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/requests/adapters.py", line 696, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 842, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/urllib3/util/retry.py", line 543, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.opentext.com', port=443): Max retries exceeded with url: /tenants/07b5fcbd-e6f3-4eaa-97a1-e2eb795c0a06/oauth2/token (Caused by NameResolutionError("HTTPSConnection(host='api.opentext.com', port=443): Failed to resolve 'api.opentext.com' ([Errno -2] Name or service not known)"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "app.py", line 35, in billing_dashboard
token = get_access_token()
^^^^^^^^^^^^^^^^^^
File "app.py", line 27, in get_access_token
response = requests.post(url, data=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/requests/api.py", line 134, in post
return request("post", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/requests/api.py", line 71, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/requests/sessions.py", line 651, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/requests/sessions.py", line 784, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/itworldclass/virtualenv/billing.itworldclass.com/3.11/lib/python3.11/site-packages/requests/adapters.py", line 729, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.opentext.com', port=443): Max retries exceeded with url: /tenants/07b5fcbd-e6f3-4eaa-97a1-e2eb795c0a06/oauth2/token (Caused by NameResolutionError("HTTPSConnection(host='api.opentext.com', port=443): Failed to resolve 'api.opentext.com' ([Errno -2] Name or service not known)"))