11-06-2024 08:50 AM
I'm having an issue adding a translation pattern via axl using python and zeep.
The error I'm getting is:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='ccmservername', port=8443): Max retries exceeded with url: /axl/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x00000209960F99A0>: Failed to resolve 'ccmservername' ([Errno 11001] getaddrinfo failed)"))
However i can use the same client.service to run other api commands such as resetPhone
The code I'm using is attached.
Any thoughts on this one? I feel it may be a bug.
Solved! Go to Solution.
11-07-2024 09:37 AM
Testing the code, it seems that in the problem request you are using the base client.service object instead of the instantiated service object which works elsewhere:
# response = client.service.addTransPattern(translation_pattern)
response = service.addTransPattern(translation_pattern)
11-07-2024 05:21 AM
The error message is telling you it is a problem with resolving the name of the server.
Caused by NameResolutionError
11-07-2024 09:37 AM
Testing the code, it seems that in the problem request you are using the base client.service object instead of the instantiated service object which works elsewhere:
# response = client.service.addTransPattern(translation_pattern)
response = service.addTransPattern(translation_pattern)
11-08-2024 06:24 AM
Oh man nice find @DavidStaudt I totally missed that. It is working now.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide