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

Strip whitespace when reading API token #381

Open
cjolowicz opened this issue Nov 3, 2021 · 0 comments
Open

Strip whitespace when reading API token #381

cjolowicz opened this issue Nov 3, 2021 · 0 comments

Comments

@cjolowicz
Copy link
Owner

It is a common error to paste the PAT with a space at the end. The program does not strip this space and stores the token as-is in its cache. Currently this results in an error whenever the token is used:

⨯ The command git push failed with status 128.

❯ git push 'https://******************************** :[email protected]/cjolowicz/cookiecutter-hypermodern-python.git' +retrocookie-pr/poetry-up/babel-2.9.1

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https:/cjolowicz/cookiecutter-hypermodern-python.git/'
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