Skip to content

AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'? #10

@tchad-rogers

Description

@tchad-rogers

I'm getting the following error when running api_client.request_jwt_user_token():

AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

(docusign_admin/client/api_client.py, line 689)

Looking at docusign-esign-python-client repo, that same line had the .decode("utf-8") removed in the Version 3.16.0-v2.1-22.1.02.00 release.

Reference link to that line in docusign-admin-python-client

compared to that line in docusign-esign-python-client.

If I remove the offending .decode("utf-8") in the docusign_admin/client/api_client.py file, my code works as-expected.

I'm not clear how others are using the docusign-admin-python-client without request_jwt_user_token() throwing that error. I'm not sure if I've stumbled upon a bug, or if I'm doing something wrong.

Thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions