The Wayback Machine - https://web.archive.org/web/20201126011434/https://github.com/TheAlgorithms/Python/issues/3944
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

web_programming/fetch_github_info.py err #3944

Closed
Ksengine opened this issue Nov 24, 2020 · 1 comment
Closed

web_programming/fetch_github_info.py err #3944

Ksengine opened this issue Nov 24, 2020 · 1 comment
Labels
bug

Comments

@Ksengine
Copy link

@Ksengine Ksengine commented Nov 24, 2020

message: Bad credentials. The API can't be accessed using username/password authentication. Please create a personal access token to access this endpoint: http://github.com/settings/tokens
documentation_url: https://docs.github.com/articles/creating-a-personal-access-token-for-the-command-line
@dhruvmanila dhruvmanila mentioned this issue Nov 24, 2020
11 of 14 tasks complete
@dhruvmanila dhruvmanila added the bug label Nov 24, 2020
dhruvmanila added a commit that referenced this issue Nov 25, 2020
* fixes #3944 authentication error
* Fixes: #3944 authentication error
* Fixed docstring failure in pre-commit, Fixed request.get params to GitHub REST API standards
* run black formatter
* Add USER_TOKEN constant and checks if empty, removes deprecated docstring
* Add descriptive dict type hint, change headers format to f-string
* Add Accept header
* Fix pre-commit error
* Fix pre-commit error
* Add test for fetch_github_info
* Remove test function from main file
* Create test_fetch_github_info.py
* Update test_fetch_github_info.py
* Update test_fetch_github_info.py
* No need to cover __name__ == __main__ block

Co-authored-by: Dhruv Manilawala <[email protected]>
@Ksengine
Copy link
Author

@Ksengine Ksengine commented Nov 25, 2020

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.