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

Bug: sam local start-api - ResponseParserError #7242

Closed
saravanan-tavidarajan-idexcel opened this issue Jul 12, 2024 · 4 comments
Closed

Bug: sam local start-api - ResponseParserError #7242

saravanan-tavidarajan-idexcel opened this issue Jul 12, 2024 · 4 comments
Labels
blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale.

Comments

@saravanan-tavidarajan-idexcel

Description:

sam cli was working, until i was install awscli and configure. after un-install aws cli, sam-cli started throwing an error like below

Steps to reproduce:

Observed result:

Expected result:

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Mac 12.7.5
  2. sam --version: SAM CLI, version 1.120.0
  3. AWS region:
# Paste the output of `sam --info` here

Traceback:
File "click/core.py", line 1078, in main
File "click/core.py", line 1688, in invoke
File "click/core.py", line 1688, in invoke
File "click/core.py", line 1434, in invoke
File "click/core.py", line 783, in invoke
File "samcli/cli/cli_config_file.py", line 347, in wrapper
File "click/decorators.py", line 92, in new_func
File "click/core.py", line 783, in invoke
File "samcli/lib/telemetry/metric.py", line 185, in wrapped
File "samcli/lib/telemetry/metric.py", line 150, in wrapped
File "samcli/lib/utils/version_checker.py", line 43, in wrapped
File "samcli/cli/main.py", line 95, in wrapper
File "samcli/commands/local/start_api/cli.py", line 150, in cli
File "samcli/commands/local/start_api/cli.py", line 232, in do_cli
File "samcli/commands/local/cli_common/invoke_context.py", line 184, in init
File "samcli/commands/local/cli_common/invoke_context.py", line 363, in _add_account_id_to_global
File "botocore/client.py", line 565, in _api_call
File "botocore/client.py", line 1001, in _make_api_call
File "botocore/client.py", line 1027, in _make_request
File "botocore/endpoint.py", line 119, in make_request
File "botocore/endpoint.py", line 199, in _send_request
File "botocore/endpoint.py", line 241, in _get_response
File "botocore/endpoint.py", line 308, in _do_get_response
File "botocore/parsers.py", line 250, in parse
File "botocore/parsers.py", line 559, in _do_error_parse
File "botocore/parsers.py", line 508, in _parse_xml_string_to_dom

An unexpected error was encountered while executing "sam local start-api".

Add --debug flag to command you are running

@saravanan-tavidarajan-idexcel saravanan-tavidarajan-idexcel added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jul 12, 2024
@saravanan-tavidarajan-idexcel
Copy link
Author

Any help

@lucashuy
Copy link
Contributor

lucashuy commented Jul 12, 2024

Can you provide some steps to reproduce this issue? Notably the commands you ran to get this error and the command outputs with the --debug flag enabled.

Additionally, are you installing the tools using pip, or with the provided installer artifacts?

@lucashuy lucashuy added blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale. and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jul 12, 2024
@hnnasit
Copy link
Contributor

hnnasit commented Sep 10, 2024

Closing as the issue has been stale for a while. Please open a new issue with more information if you still have questions or concerns.

@hnnasit hnnasit closed this as completed Sep 10, 2024
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/more-info-needed More info is needed from the requester. If no response in 14 days, it will become stale.
Projects
None yet
Development

No branches or pull requests

3 participants