GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.6k stars 205 forks source link

[WinError 10054] An existing connection was forcibly closed by the remote host #368

Open NikhilPampatwar opened 2 years ago

NikhilPampatwar commented 2 years ago

Full steps to reproduce the issue: (Windows 10)

  1. Installed GYB and followed steps in creating project. - Had an issue in downloading the JSON file. So did the manual key creation & downloaded JSON in Service account.
  2. Also enabled APIs as specified in WiKi
  3. I run "gyb --email my-super-admin@mycompany.com --service-account" at command prompt.

Expected outcome (what are you trying to do?): Expecting it to prompt me which user emails I want to download.

Actual outcome (what errors or bad behavior do you see instead?): Traceback (most recent call last): File "gyb.py", line 2642, in File "gyb.py", line 1897, in main File "gyb.py", line 602, in doGYBCheckForUpdates File "httplib2__init.py", line 1701, in request File "httplib2__init__.py", line 1421, in _request File "httplib2\init.py", line 1343, in _conn_request File "httplib2\init.py", line 1179, in connect File "httplib2\init__.py", line 1135, in connect File "ssl.py", line 512, in wrap_socket File "ssl.py", line 1070, in _create File "ssl.py", line 1341, in do_handshake ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host [9864] Failed to execute script 'gyb' due to unhandled exception!