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

Not All Error Response Msgs Have the Key 'ERR_CD' #133

Open
anthonysgevans opened this issue Jan 31, 2019 · 0 comments
Open

Not All Error Response Msgs Have the Key 'ERR_CD' #133

anthonysgevans opened this issue Jan 31, 2019 · 0 comments

Comments

@anthonysgevans
Copy link

Stacktrace:

dynect_session = DynectSession(customer, username, password)
File \"/usr/local/lib/python2.7/dist-packages/dyn/core.py\", line 51, in __call__\n    cur_thread: super(_Singleton, cls).__call__(*args, **kwargs)
File \"/usr/local/lib/python2.7/dist-packages/dyn/tm/session.py\", line 57, in __init__
self.authenticate()\n  File \"/usr/local/lib/python2.7/dist-packages/dyn/tm/session.py\", line 176, in authenticate   
response = self.execute('/Session/', 'POST', api_args)
File \"/usr/local/lib/python2.7/dist-packages/dyn/core.py\", line 399, in execute    
return self._handle_response(response, uri, method, raw_args, final)
File \"/usr/local/lib/python2.7/dist-packages/dyn/core.py\", line 313, in _handle_response
retry = self._retry(ret_val['msgs'], final)
File \"/usr/local/lib/python2.7/dist-packages/dyn/core.py\", line 252, in _retry    
throttled = any(throttle_err == err['ERR_CD'] for err in msgs)  
File \"/usr/local/lib/python2.7/dist-packages/dyn/core.py\", line 252, in <genexpr>
throttled = any(throttle_err == err['ERR_CD'] for err in msgs)
KeyError: 'ERR_CD'"

It would seem not all error response messages have the key 'ERR_CD'.

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

No branches or pull requests

1 participant