AWS CLI Generate DB Auth Token Time out Issue #3335
Unanswered
zayadshaikh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i am doing
aws configure sso
I am getting below error
2025-01-14 13:13:41,427 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (2): oidc.us-east-1.amazonaws.com:443
2025-01-14 13:13:41,427 - MainThread - botocore.hooks - DEBUG - Event needs-retry.sso-oidc.RegisterClient: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x000001C8E8712150>>
2025-01-14 13:13:41,428 - MainThread - botocore.retries.standard - DEBUG - Retry needed, retrying request after delay of: 0.8990983372861832
2025-01-14 13:13:41,429 - MainThread - botocore.endpoint - DEBUG - Response received to retry, sleeping for 0.8990983372861832 seconds
2025-01-14 13:13:42,330 - MainThread - botocore.hooks - DEBUG - Event request-created.sso-oidc.RegisterClient: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x000001C8E8638550>>
2025-01-14 13:13:42,330 - MainThread - botocore.hooks - DEBUG - Event choose-signer.sso-oidc.RegisterClient: calling handler <function set_operation_specific_signer at 0x000001C8E56DDC60>
2025-01-14 13:13:42,336 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://oidc.us-east-1.amazonaws.com/client/register, headers={'Content-Type': b'application/json', 'User-Agent': b'aws-cli/2.15.40 Python/3.11.8 Windows/10 exe/AMD64 prompt/off command/configure.sso', 'Content-Length': '106'}>
2025-01-14 13:13:42,338 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (3): oidc.us-east-1.amazonaws.com:443
2025-01-14 13:13:42,338 - MainThread - botocore.hooks - DEBUG - Event needs-retry.sso-oidc.RegisterClient: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x000001C8E8712150>>
2025-01-14 13:13:42,340 - MainThread - botocore.retries.standard - DEBUG - Max attempts of 3 reached.
2025-01-14 13:13:42,342 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2025-01-14 13:13:42,342 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 704, in urlopen
File "urllib3\connectionpool.py", line 299, in _get_conn
File "urllib3\connectionpool.py", line 1037, in _new_conn
File "awscli\botocore\awsrequest.py", line 67, in init
File "urllib3\connection.py", line 316, in init
File "urllib3\connection.py", line 130, in init
File "http\client.py", line 865, in init
File "http\client.py", line 1251, in _validate_host
http.client.InvalidURL: URL can't contain control characters. '\nhttp' (found at least '\n')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "awscli\botocore\httpsession.py", line 448, in send
File "urllib3\connectionpool.py", line 799, in urlopen
File "urllib3\util\retry.py", line 525, in increment
File "urllib3\packages\six.py", line 769, in reraise
File "urllib3\connectionpool.py", line 704, in urlopen
File "urllib3\connectionpool.py", line 299, in _get_conn
File "urllib3\connectionpool.py", line 1037, in _new_conn
File "awscli\botocore\awsrequest.py", line 67, in init
File "urllib3\connection.py", line 316, in init
File "urllib3\connection.py", line 130, in init
File "http\client.py", line 865, in init
File "http\client.py", line 1251, in _validate_host
urllib3.exceptions.ProtocolError: ('Connection aborted.', InvalidURL("URL can't contain control characters. '\nhttp' (found at least '\n')"))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "awscli\clidriver.py", line 460, in main
File "awscli\customizations\commands.py", line 151, in call
File "awscli\customizations\commands.py", line 205, in call
File "awscli\customizations\configure\sso.py", line 516, in _run_main
File "awscli\customizations\sso\utils.py", line 72, in do_sso_login
File "awscli\botocore\utils.py", line 3259, in fetch_token
File "awscli\botocore\utils.py", line 3244, in _token
File "awscli\botocore\utils.py", line 3154, in _poll_for_token
File "awscli\botocore\utils.py", line 3125, in _registration
File "awscli\botocore\utils.py", line 3082, in _register_client
File "awscli\botocore\client.py", line 357, in _api_call
File "awscli\botocore\client.py", line 710, in _make_api_call
File "awscli\botocore\client.py", line 730, in _make_request
File "awscli\botocore\endpoint.py", line 101, in make_request
File "awscli\botocore\endpoint.py", line 155, in _send_request
File "awscli\botocore\endpoint.py", line 199, in _do_get_response
File "awscli\botocore\endpoint.py", line 271, in _send
File "awscli\botocore\httpsession.py", line 487, in send
botocore.exceptions.ConnectionClosedError: Connection was closed before we received a valid response from endpoint URL: "https://oidc.us-east-1.amazonaws.com/client/register".
Connection was closed before we received a valid response from endpoint URL: "https://oidc.us-east-1.amazonaws.com/client/register".
Beta Was this translation helpful? Give feedback.
All reactions