-
Notifications
You must be signed in to change notification settings - Fork 88
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
request_jwt_user_token error that can't decode a string #94
Comments
SO says in Python 3 just drop the |
@jazzdev I think you're 100% right. The problem is that this is in the api_client of this library and I'm installing it with pip. I could technically pull down the library with git and just put it in my project and take out that line, but as it is in this repo, it's imcompatible with python3. |
Looks like there was a breaking change to pyjwt jpadilla/pyjwt@4770745 |
Adding PyJWT==1.7.1 to requirements.txt fix it for me. |
@eduardo-marcolino makes sense. Thanks! I would suggest just to code the specific version of this library too, in case the newer versions of this library are assuming the newer version of PyJWT |
Hello, Meanwhile, we are looking to update to a more suitable JWT library for all versions possible. Thank you all for your help. Appreciate the community's help all around. |
@harsharahul Hi, Thanks for looking into this. Any expected date for the new release with support for PyJWT 2.0 |
Hi, any news for a PyJWT update ? We're using |
Check this comment : #135 (comment) |
function
request_jwt_user_token
following line gives an error
token = jwt.encode(payload=claim, key=private_key_bytes, algorithm='RS256').decode("utf-8")
"stackTrace": [
"Traceback (most recent call last):\n",
" my_file_that_uses_the_docusign_api line something",
" File "/var/task/docusign_esign/client/api_client.py", line 689, in request_jwt_user_token\n token = jwt.encode(payload=claim, key=private_key_bytes, algorithm='RS256').decode("utf-8")\n",
"AttributeError: 'str' object has no attribute 'decode'\n"
The text was updated successfully, but these errors were encountered: