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

Incorrect access token results in an unintuitive error #28

Open
krassowski opened this issue Jul 1, 2024 · 0 comments
Open

Incorrect access token results in an unintuitive error #28

krassowski opened this issue Jul 1, 2024 · 0 comments

Comments

@krassowski
Copy link
Member

If user specifies an incorrect access token (for example wrapping the string value in quotes like token: "pat-randomstring" instead of token: pat-randomstring the error returned on attempt to download the repository will be:

File "nbgitpuller/pull.py", line 136, in resolve_default_branch
    raise ValueError(m)
ValueError: Problem accessing HEAD branch: https://repository.domain.git

This is not handled nicely upstream partially because nbgitpuller does not expect to be used with private repos.
Upstream issue:

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

1 participant