我在 python 中的任何地方都遇到错误,密码或用户名错误

问题描述 投票:0回答:1
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/PixelXl81/django_starter.git/'
Traceback (most recent call last):
  File "/home/Pixel/.local/bin/pa_autoconfigure_django.py", line 49, in <module>
    main(
  File "/home/Pixel/.local/bin/pa_autoconfigure_django.py", line 31, in main
    project.download_repo(repo_url, nuke=nuke),
  File "/home/Pixel/.local/lib/python3.10/site-packages/pythonanywhere/django_project.py", line 20, in download_repo
    subprocess.check_call(['git', 'clone', repo, str(self.project_path)])
  File "/usr/local/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'clone', 'https://github.com/PixelXl81/django_starter.git', '/home/Pixel/pixel.pythonanywher
e.com']' returned non-zero exit status 128.

我也尝试了从 python 任何地方获得的 api 令牌,但我再次收到此错误

django pythonanywhere
1个回答
0
投票

该代码正在尝试访问私有 GitHub 存储库/不存在的存储库,它需要用户名和密码。从我所看到的错误来看,您提供了错误的用户名和密码。

© www.soinside.com 2019 - 2024. All rights reserved.