Hi all
I use PureCloudPlatformClientV2 sdk to execute get_authorization_divisionspermitted_paged_me, but an error was reported. I don't know how to solve this problem.
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connection.py", line 158, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\util\connection.py", line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 597, in urlopen
httplib_response = self._make_request(conn, method, url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 839, in _validate_conn
conn.connect()
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connection.py", line 301, in connect
conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connection.py", line 167, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x0000020064035490>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\workData\tools\cXcode\genesys-setup\src\genesys_flows.py", line 1016, in <module>
download(configDir,flowType,nameList,keywordList)
File "C:\workData\tools\cXcode\genesys-setup\src\genesys_flows.py", line 188, in download
searchCls = SearchCls(mainCredential,credential)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\workData\tools\cXcode\genesys-setup\src\utils\search_utils.py", line 28, in wrapper
instances[key] = cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "C:\workData\tools\cXcode\genesys-setup\src\utils\search_utils.py", line 45, in __init__
self.apiClient = self.getApiClient()
^^^^^^^^^^^^^^^^^^^
File "C:\workData\tools\cXcode\genesys-setup-script\src\utils\search_utils.py", line 51, in getApiClient
apiClient = apiClient.get_client_credentials_token(self.cloudClientId, self.cloudClientSecret)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\PureCloudPlatformClientV2\api_client.py", line 126, in get_client_credentials_token
response = self.request("POST", url,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\PureCloudPlatformClientV2\api_client.py", line 565, in request
return self.rest_client.POST(url,
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\PureCloudPlatformClientV2\rest.py", line 225, in POST
return self.request("POST", url,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\PureCloudPlatformClientV2\rest.py", line 168, in request
r = self.pool_manager.request(method, url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\request.py", line 70, in request
return self.request_encode_body(method, url, fields=fields,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\request.py", line 150, in request_encode_body
return self.urlopen(method, url, **extra_kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\poolmanager.py", line 324, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 663, in urlopen
return self.urlopen(method, url, body, headers, retries,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 663, in urlopen
return self.urlopen(method, url, body, headers, retries,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 663, in urlopen
return self.urlopen(method, url, body, headers, retries,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 7 more times]
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\connectionpool.py", line 637, in urlopen
retries = retries.increment(method, url, error=e, _pool=self,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yubin\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3\util\retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.mypurecloud.jp"', port=443): Max retries exceeded with url: /oauth/token (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000020064035490>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
PS C:\workData\tools\cXcode\genesys-setup\src>