question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode()

See original GitHub issue
  • Package Name: azureml-core
  • Package Version: 1.18.0.post1
  • Operating System: vs2017-win2016
  • Python Version: 3.6.8

Describe the bug Launching the build of a ML pipeline I get the following error before it’s able to start the first step:

It is required that you pass in a value for the "algorithms" argument when calling decode().'
jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode()

To Reproduce Steps to reproduce the behavior: 1.

Expected behavior That the pipeline starts without problem.

Additional context PyJWT is pinned to version 1.7.1 On a different Azure Machine Learning the pipelines run without issues.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:24 (9 by maintainers)

github_iconTop GitHub Comments

8reactions
Thalindacommented, May 19, 2021

i got the same issues so if some one still get hte same issues try this

token = jwt.encode({'user_id':user_id,'exp':datetime.datetime.utcnow()+datetime.timedelta(minutes=1440)},SECRET, algorithm="HS256")
    data = jwt.decode(token,SECRET,algorithms="HS256")

you have to passe the alogrithms

6reactions
ponkumarpandiancommented, Jan 13, 2021

I am also getting the same error and it is working fine in another subscription. Any update on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

It is required that you pass in a value for the "algorithms ...
This is the mentioned error that saying algorithms argument when calling decode() error should be rectified. View Page: from django.http import ...
Read more >
jwt decode() errror - Google Groups
jwt.exceptions.DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().
Read more >
Usage Examples — PyJWT 2.6.0 documentation
RSA encoding and decoding require the cryptography module. ... If your private key needs a passphrase, you need to pass in a PrivateKey...
Read more >
PyJWT 1.4.0 - PyPI
Exceptions can be raised during decode() for other errors besides an invalid ... you would like to use to sign the JWT by...
Read more >
PyJWT - Release 2.6.0 - Read the Docs
When using the RSASSA-PKCS1-v1_5 algorithms, the key argument in both jwt.encode() and jwt.decode(). ("secret" in the examples) is expected to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found