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

400 HTTP Error on login #11

Open
thunderquiet opened this issue Dec 25, 2024 · 0 comments
Open

400 HTTP Error on login #11

thunderquiet opened this issue Dec 25, 2024 · 0 comments

Comments

@thunderquiet
Copy link

Just installed the plugin and getting this error.

AWSume itself works fine. Any ideas?
Tried installing via pip and pipx, both give same error.

$  awsume -c default --debug
[2024-12-25 22:41:55,035] main.py:main : [DEBUG] Debug logs are visible
[2024-12-25 22:41:55,035] main.py:main : [DEBUG] Executing awsume
[2024-12-25 22:41:55,035] app.py:__init__ : [DEBUG] Initalizing app
[2024-12-25 22:41:55,035] app.py:get_plugin_manager : [DEBUG] Creating plugin manager
[2024-12-25 22:41:55,036] app.py:get_plugin_manager : [DEBUG] Loading plugins
[2024-12-25 22:41:55,039] app.py:parse_args : [DEBUG] Gathering arguments
[2024-12-25 22:41:55,040] default_plugins.py:add_arguments : [INFO] Adding arguments
[2024-12-25 22:41:55,040] app.py:parse_args : [DEBUG] Parsing arguments
[2024-12-25 22:41:55,040] app.py:parse_args : [DEBUG] Handling arguments
[2024-12-25 22:41:55,041] default_plugins.py:post_add_arguments : [DEBUG] Post add arguments
[2024-12-25 22:41:55,041] default_plugins.py:post_add_arguments : [DEBUG] {"version": false, "output_profile": null, "clean": false, "profile_name": "default", "force_refresh": false, "show_commands": false, "unset_variables": false, "auto_refresh": false, "kill": false, "list_profiles": null, "session_tags": null, "refresh_autocomplete": false, "role_arn": null, "principal_arn": null, "source_profile": null, "external_id": null, "mfa_token": null, "region": null, "session_name": null, "role_duration": null, "with_saml": false, "with_web_identity": false, "who": false, "json": null, "credentials_file": null, "config_file": null, "config": null, "list_plugins": false, "info": false, "debug": true, "console": true, "console_link": false, "console_service": false, "console_link_service": false, "console_without_authentication": false}
[2024-12-25 22:41:55,041] app.py:get_profiles : [DEBUG] Gathering profiles
[2024-12-25 22:41:55,041] default_plugins.py:collect_aws_profiles : [INFO] Collecting AWS profiles
[2024-12-25 22:41:55,041] default_plugins.py:collect_aws_profiles : [DEBUG] Collected 5 profiles
[2024-12-25 22:41:55,041] default_plugins.py:post_collect_aws_profiles : [INFO] Post collect AWS profiles
[2024-12-25 22:41:55,041] app.py:get_credentials : [DEBUG] Getting credentials
[2024-12-25 22:41:55,041] app.py:get_credentials : [DEBUG] Pulling credentials from default awsume flow
[2024-12-25 22:41:55,041] profile.py:get_role_chain : [DEBUG] Getting role chain for [default]
[2024-12-25 22:41:55,041] default_plugins.py:get_credentials : [DEBUG] Role chain: ['default']
[2024-12-25 22:41:55,042] default_plugins.py:get_credentials_handler : [INFO] Getting credentials: default
[2024-12-25 22:41:55,042] profile.py:validate_profile : [DEBUG] Validating profile
[2024-12-25 22:41:55,042] default_plugins.py:get_credentials_no_mfa : [INFO] Getting credentials MFA not required
[2024-12-25 22:41:55,042] console.py:post_get_credentials : [DEBUG] Opening console with awsume'd credentials
[2024-12-25 22:41:55,042] console.py:get_console_url : [DEBUG] Region: ap-northeast-1
[2024-12-25 22:41:55,042] console.py:get_console_url : [DEBUG] Amazon domain: aws.amazon.com
[2024-12-25 22:41:55,042] console.py:get_console_url : [DEBUG] Credentials: {
  "AccessKeyId": "SECRET",
  "SecretAccessKey": "SECRET",
  "SessionToken": null,
  "Region": "ap-northeast-1"
}
[2024-12-25 22:41:55,042] console.py:get_console_url : [DEBUG] Get console url request params: {
  "Action": "getSigninToken",
  "Session": {
    "sessionId": "SECRET",
    "sessionKey": "SECRET",
    "sessionToken": null
  }
}
Traceback (most recent call last):
  File "/.pyenv/versions/3.11.10/bin/awsumepy", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/awsume/awsumepy/main.py", line 29, in main
    run_awsume(sys.argv[1:])
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/awsume/awsumepy/main.py", line 17, in run_awsume
    awsume.run(argument_list)
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/awsume/awsumepy/app.py", line 265, in run
    credentials = self.get_credentials(args, profiles)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/awsume/awsumepy/app.py", line 225, in get_credentials
    self.plugin_manager.hook.post_get_credentials(
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/.pyenv/versions/3.11.10/lib/python3.11/site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/pluggy/_callers.py", line 139, in _multicall
    raise exception.with_traceback(exception.__traceback__)
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/console.py", line 148, in post_get_credentials
    url = get_console_url(credentials, service, arguments.console_without_authentication)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/site-packages/console.py", line 231, in get_console_url
    response = URLOPEN(request_url + URLENCODE(params))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "~/.pyenv/versions/3.11.10/lib/python3.11/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant