Skip to content

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

Open
@anthonysgevans

Description

@anthonysgevans

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions