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

Error message didn't clearly indicate when missing PAT #21

Open
jules32 opened this issue Feb 11, 2025 · 3 comments
Open

Error message didn't clearly indicate when missing PAT #21

jules32 opened this issue Feb 11, 2025 · 3 comments

Comments

@jules32
Copy link

jules32 commented Feb 11, 2025

Hello! Thanks for this package, it is really super to have and use.

It is now working for me after I inspected my account and created a PAT.
Previously, when I only had one expired PAT in my account, I got the following error message:

download_organization_repos(organizations = "jules32")
Error in `purrr::map_chr()`:
ℹ In index: 1.
Caused by error in `.f()`:
! Could not find organization or user 'jules32'.
Run `rlang::last_trace()` to see where the error occurred.

[that is the full error, not truncated].

I don't have a reproducible example, and like I said above, I was able to inspect and update my PAT, but I wanted to share for awareness. Thank you!

@jules32
Copy link
Author

jules32 commented Feb 11, 2025

cc: @ateucher

@ateucher
Copy link

ateucher commented Feb 12, 2025

Hope you don't mind me jumping in: I think the issues is not that it failed, but that the error message didn't indicate an authentication error, which it likely was. Perhaps the error messages from the failures captured with try() could be included in the message, if it's not a 404 error (which I'm sure it wasn't for @jules32)?

@jules32
Copy link
Author

jules32 commented Feb 12, 2025

thanks @ateucher , yes that is correct!

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