GAM-team / GAM-team/got-your-back

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

Open
#368 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.1k
Forks
245
PR merge metrics
No merged PRs in 30d

Description

* I have upgraded to the latest GYB release from https://github.com/jay0lee/got-your-back/releases and I still have this issue.
* I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/got-your-back/wiki

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!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with gyb.py at main and doGYBCheckForUpdates around line 602, then reproduce the Windows 10 command `gyb --email my-super-admin@mycompany.com --service-account`. Trace the httplib2 SSL handshake shown in the traceback; done means the command no longer exits with WinError 10054 and reaches the expected user-email prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.