cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
825
Views
2
Helpful
3
Replies

addTransPattern Issue

james-ferris
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

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)

View solution in original post

3 Replies 3

The error message is telling you it is a problem with resolving the name of the server.

Caused by NameResolutionError

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)

Oh man nice find @DavidStaudt I totally missed that.  It is working now.