Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GutHub Connection Error
#1
When i tried to list my Repo in Organization Github , I'm getting authentication error.


from github import Github
g = Github("<Access Token>")
repo = g.get_user().get_repo("sample")
a = repo.get_contents("demo.txt")
print(a.text)
Error:
Error:
File "C:\Program Files (x86)\Python 3.5\lib\site-packages\urllib3\connectionpool.py", line 594, in urlopen self._prepare_proxy(conn) File "C:\Program Files (x86)\Python 3.5\lib\site-packages\urllib3\connectionpool.py", line 805, in _prepare_proxy conn.connect() File "C:\Program Files (x86)\Python 3.5\lib\site-packages\urllib3\connection.py", line 308, in connect self._tunnel() File "C:\Program Files (x86)\Python 3.5\lib\http\client.py", line 832, in _tunnel message.strip())) OSError: Tunnel connection failed: 407 AuthenticationRequired During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files (x86)\Python 3.5\lib\site-packages\requests\adapters.py", line 449, in send timeout=timeout File "C:\Program Files (x86)\Python 3.5\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "C:\Program Files (x86)\Python 3.5\lib\site-packages\urllib3\util\retry.py", line 398, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /user (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 AuthenticationRequired',)))
Could anyone help me out on this ?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mysql error message: Lost connection to MySQL server during query tomtom 6 15,993 Feb-09-2022, 09:55 AM
Last Post: ibreeden
  Serial connection connection issue Joni_Engr 15 8,026 Aug-30-2021, 04:46 PM
Last Post: deanhystad
  Weird SQLAchemy connection string error pawpaw 0 1,510 Jun-28-2020, 10:11 AM
Last Post: pawpaw
  Connection timed out error when connecting to SQL server kenwatts275 2 3,317 Jun-02-2020, 07:35 PM
Last Post: bowlofred
  Pyinstaller create this error :“File ”multiprocessing\connection.py“, line 691 Formationgrowthhacking 2 3,619 Apr-30-2020, 10:26 AM
Last Post: buran
  Windows server 2008 SP2 - Python cx_Oracle connection DLL error tpanagoda 2 5,046 Mar-05-2018, 04:35 AM
Last Post: tpanagoda
  Error in running MS Access Database connection code pyuser1 4 7,663 Feb-01-2018, 08:28 PM
Last Post: pyuser1

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020