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

jwt: errors from http client is not wrapped in error #635

Open
jkralik opened this issue Mar 13, 2023 · 1 comment · May be fixed by #636
Open

jwt: errors from http client is not wrapped in error #635

jkralik opened this issue Mar 13, 2023 · 1 comment · May be fixed by #636

Comments

@jkralik
Copy link

jkralik commented Mar 13, 2023

Pls replace %v by %w in fmt.Errorf for wrapping errors.
eg:

return nil, fmt.Errorf("oauth2: cannot fetch token: %v", err)

return nil, fmt.Errorf("oauth2: cannot fetch token: %v", err)

return nil, fmt.Errorf("oauth2: cannot fetch token: %v", err)

return nil, fmt.Errorf("oauth2: cannot fetch token: %v", err)

return nil, fmt.Errorf("oauth2: error decoding JWT token: %v", err)

...

jkralik added a commit to plgd-dev/hub that referenced this issue Mar 13, 2023
jkralik added a commit to plgd-dev/hub that referenced this issue Mar 13, 2023
jwt package doesn't propagate correctly error:
golang/oauth2#635
jkralik added a commit to plgd-dev/hub that referenced this issue Mar 14, 2023
jwt package doesn't propagate correctly error:
golang/oauth2#635
jkralik added a commit to plgd-dev/hub that referenced this issue Mar 14, 2023
jwt package doesn't propagate correctly error:
golang/oauth2#635
@1garo 1garo linked a pull request Mar 14, 2023 that will close this issue
@1garo
Copy link

1garo commented Mar 14, 2023

opened a PR to solve this! @jkralik

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

Successfully merging a pull request may close this issue.

2 participants