-
Notifications
You must be signed in to change notification settings - Fork 40
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
DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode(). #37
Comments
HI Henry, can you post the full logs. I cannot reproduce the error. Also what version is your |
Sure @haodeqi - I can provide logs if you tell me how to get the logs and find the versions of those two items (Sorry, I'm a newbie in that respect). I found this interesting post about why algorithm is now required when calling jwt.decode This documentation also mentions it Here's the error i am receiving and it appears that site-packages\ibm_cloud_sdk_core\jwt_token_manager.py is not passing the algorithm as is now required. `DecodeError Traceback (most recent call last) ~\assistant-dialog-skill-analysis\assistant_dialog_skill_analysis\utils\skills_util.py in retrieve_workspace(workspace_id, conversation, export_flag) C:\ProgramData\Anaconda3\lib\site-packages\ibm_watson\assistant_v1.py in get_workspace(self, workspace_id, export, include_audit, sort, **kwargs) C:\ProgramData\Anaconda3\lib\site-packages\ibm_cloud_sdk_core\base_service.py in prepare_request(self, method, url, headers, params, data, files, **kwargs) C:\ProgramData\Anaconda3\lib\site-packages\ibm_cloud_sdk_core\authenticators\iam_authenticator.py in authenticate(self, req) C:\ProgramData\Anaconda3\lib\site-packages\ibm_cloud_sdk_core\jwt_token_manager.py in get_token(self) C:\ProgramData\Anaconda3\lib\site-packages\ibm_cloud_sdk_core\jwt_token_manager.py in paced_request_token(self) C:\ProgramData\Anaconda3\lib\site-packages\ibm_cloud_sdk_core\jwt_token_manager.py in _save_token_info(self, token_response) C:\ProgramData\Anaconda3\lib\site-packages\jwt\api_jwt.py in decode(self, jwt, key, algorithms, options, **kwargs) C:\ProgramData\Anaconda3\lib\site-packages\jwt\api_jwt.py in decode_complete(self, jwt, key, algorithms, options, **kwargs) DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode(). |
aiohttp 3.7.3 |
Haode
I put the package version in the issue report.
How can I get the logs? I don't know how
On Thu, Jan 7, 2021 at 11:10 AM Haode Qi ***@***.***> wrote:
HI Henry, can you post the full logs. I cannot reproduce the error. Also
what version is your ibm-watson package?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQL525O62D7GJSB7GFO2Z7LSYXMHZANCNFSM4VZESINA>
.
--
Best Regards,
Henry Will IV, PMP
Proven PMP and Tech Innovator
www.linkedin.com/in/henrywill4
|
@henrywill4 , I think this is a known issue of |
@haodeqi - Thanks so much. This worked! I thought this was the issue. I saw a similar suggestion elsewhere for the same issue. They also recommended to downgrade. We can close this now. I do wonder when you believe this will be updated to accommodate the new version of PyJWT though. |
I'm receiving this error when running the notebook.
DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().
This is in the cell after the heading
1.1 Set up access to the training data
on this line:
52 workspace = skills_util.retrieve_workspace(workspace_id=workspace_id,
---> 53 conversation=conversation)
It appears to be some type of authentication issue.
Any ideas what this might be?
The text was updated successfully, but these errors were encountered: