Closed thehilll closed 1 year ago
And sorry, this is with duo-client
5.0.0.
https://github.com/duosecurity/duo_client_python/pull/214 was meant to address this. Clearly that didn't quite do the job. Thanks for letting us know - we'll look into it.
5.0.1 is out with fix for this issue :)
Thank you. This fixed it for us.
When trying to add an existing phone to an existing user, e.g. with:
I am running into this error:
I believe the issue is that according to the API docs the response to this call should be:
parse_json_response_and_metadata
tries to parse this response with:Since there is no
metadata
key at the top level it tries to pull themetadata
key from withinresponse
, but that is an empty string in this case, so the.get
method fails.I'm not sure what your preferred approach to fixing this would be, obviously this would work:
But maybe that would cause other issues?