Skip to content
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

ArgumentError: wrong number of arguments (given 2, expected 1) #429

Closed
joseneto opened this issue Jul 2, 2021 · 3 comments
Closed

ArgumentError: wrong number of arguments (given 2, expected 1) #429

joseneto opened this issue Jul 2, 2021 · 3 comments

Comments

@joseneto
Copy link

joseneto commented Jul 2, 2021

Ruby: 3.0.1
Rails 6.1.4
JWT: 2.3.1

JWT.decode "111.111.111", nil, false

works fine if I remove the dots

JWT.decode "111111111", nil, false

Give me the error -> ArgumentError: wrong number of arguments (given 2, expected 1)

@joseneto
Copy link
Author

joseneto commented Jul 2, 2021

The problem was the json version, after updated everything works fine

@joseneto joseneto closed this as completed Jul 2, 2021
@thomasdarde
Copy link

which json version did you use @joseneto ?

@joseneto
Copy link
Author

joseneto commented Aug 5, 2021

Hi @thomasdarde I using now version 2.5.1

gem 'json', '~> 2.5.1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants