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
AttributeError: 'str' object has no attribute 'decode' #33
Comments
I just tested (with Python 3.8 though) it still works here. Can you post the result of your |
I suspect your version of PyJWT not being correct. It should be 1.6.4 I just tested with the latest version 2.0.0, and |
Yes I just came to the same conclusion. Thanks for taking the time ! Are you interested in PR to protect against this behavior from PyJWT ? |
Sure! I am sure there is some way to take dependencies from |
After some research I found out you can put your dependencies in I will do this shortly. |
Oh that's why ! |
I have just published version 0.9.0 which pins the library dependencies in setup.py, solving this issue. Thanks for reporting it! |
Hello,
I have been using this library without issue for a few months. I started encountering an issue since this january 1st.
I'm using the same exact environment and credentials but here is the stacktrace of the exception I am now running into :
AttributeError: 'str' object has no attribute 'decode'
File "batch_reporting.py", line 48, in lambda_handler
issuer_id)
File "appstoreconnect/api.py", line 51, in init
token = self.token # generate first token
File "appstoreconnect/api.py", line 269, in token
self._token = self._generate_token()
File "appstoreconnect/api.py", line 65, in _generate_token
headers={'kid': self.key_id, 'typ': 'JWT'}, algorithm=ALGORITHM).decode('ascii')
The python version is 3.6 and I am using the last version of the library 0.8.4
Do you have any lead on what might cause this ?
The text was updated successfully, but these errors were encountered: