Aws-cli: SQS help show some error messages

Created on 16 Nov 2018  ·  9Comments  ·  Source: aws/aws-cli

If I use the command aws sqs help it shows me the error message below.

$ aws sqs help
<string>:: (ERROR/3) Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.

Version

$ aws --version
aws-cli/1.16.56 Python/3.5.2 Linux/4.4.0-139-generic botocore/1.12.46
bug documentation

Most helpful comment

I am also getting same error:

➜ .aws aws sqs help
:: (ERROR/3) Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.

➜ .aws aws --version
aws-cli/2.0.16 Python/3.7.4 Darwin/19.2.0 botocore/2.0.0dev20

Please let me know if there is any workaround for this.

All 9 comments

@lazize - Thank you for reaching out. I was unable to reproduce the issue because the command executed without any errors. For us to investigate this further, please upload the sanitize debug logs after running the command with --debug:

aws sqs help --debug

@justnance See it below.

$ aws sqs help --debug
2018-11-16 21:01:28,356 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.16.56 Python/3.5.2 Linux/4.4.0-139-generic botocore/1.12.46
2018-11-16 21:01:28,357 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['sqs', 'help', '--debug']
2018-11-16 21:01:28,358 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x7f86239e6a60>
2018-11-16 21:01:28,358 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x7f8624020f28>
2018-11-16 21:01:28,358 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x7f8623feb8c8>
2018-11-16 21:01:28,362 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x7f8625b9a730>
2018-11-16 21:01:28,366 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python3.5/dist-packages/botocore/data/sqs/2012-11-05/service-2.json
2018-11-16 21:01:28,374 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.sqs: calling handler <function register_retries_for_service at 0x7f8624974d08>
2018-11-16 21:01:28,374 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: sqs
2018-11-16 21:01:28,376 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sqs: calling handler <function add_waiters at 0x7f86239f8d90>
2018-11-16 21:01:28,391 - MainThread - botocore.hooks - DEBUG - Event doc-breadcrumbs.sqs: calling handler <bound method CLIDocumentEventHandler.doc_breadcrumbs of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,391 - MainThread - botocore.hooks - DEBUG - Event doc-title.sqs: calling handler <bound method CLIDocumentEventHandler.doc_title of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,392 - MainThread - botocore.hooks - DEBUG - Event doc-description.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_description of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,395 - MainThread - botocore.hooks - DEBUG - Event doc-description.sqs: calling handler <function add_paging_description at 0x7f8623a857b8>
2018-11-16 21:01:28,395 - MainThread - botocore.hooks - DEBUG - Event doc-synopsis-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_synopsis_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,395 - MainThread - botocore.hooks - DEBUG - Event doc-synopsis-end.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_synopsis_end of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,396 - MainThread - botocore.hooks - DEBUG - Event doc-options-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_options_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,396 - MainThread - botocore.hooks - DEBUG - Event doc-options-end.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_options_end of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,396 - MainThread - botocore.hooks - DEBUG - Event doc-subitems-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_subitems_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,396 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.add-permission: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,397 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.change-message-visibility: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,397 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.change-message-visibility-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,397 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.create-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,397 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,397 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-message-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,398 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,398 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.get-queue-attributes: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,398 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.get-queue-url: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,399 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.help: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,399 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-dead-letter-source-queues: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,399 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-queue-tags: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,400 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-queues: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,400 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.purge-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,401 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.receive-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,401 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.remove-permission: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,401 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.send-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,401 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.send-message-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,402 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.set-queue-attributes: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,402 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.tag-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,402 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.untag-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
2018-11-16 21:01:28,402 - MainThread - botocore.hooks - DEBUG - Event doc-relateditems-start.sqs: calling handler <bound method CLIDocumentEventHandler.doc_relateditems_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x7f8623934a58>>
<string>:: (ERROR/3) Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.
2018-11-16 21:01:28,518 - MainThread - awscli.help - DEBUG - Running command: ['groff', '-m', 'man', '-T', 'ascii']
2018-11-16 21:01:28,583 - MainThread - awscli.help - DEBUG - Running command: ['less', '-R']

@lazize - Thank you for your feedback and the --debug details. I was able to reproduce the issue in a test environment using multiple versions. We are working to get this resolved. Thanks again for reporting this issue.

@justnance I found a similar issue with aws kms help.

Same to me for aws sqs help

❯❯ aws --version
aws-cli/1.16.158 Python/2.7.16 Darwin/18.5.0 botocore/1.12.166

❯❯ aws sqs help
<string>:: (ERROR/3) Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.

❯❯ aws sqs help --debug
2019-08-22 15:14:22,960 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.16.158 Python/2.7.16 Darwin/18.5.0 botocore/1.12.166
2019-08-22 15:14:22,960 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['sqs', 'help', '--debug']
2019-08-22 15:14:22,961 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x1078eff50>
2019-08-22 15:14:22,961 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x10720b9b0>
2019-08-22 15:14:22,962 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x107270aa0>
2019-08-22 15:14:22,970 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x1074ea9b0>
2019-08-22 15:14:22,973 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/lib/python2.7/site-packages/botocore/data/sqs/2012-11-05/service-2.json
2019-08-22 15:14:22,983 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sqs: calling handler <function add_waiters at 0x10790e398>
2019-08-22 15:14:23,000 - MainThread - botocore.hooks - DEBUG - Event doc-breadcrumbs.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_breadcrumbs of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,000 - MainThread - botocore.hooks - DEBUG - Event doc-title.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_title of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,001 - MainThread - botocore.hooks - DEBUG - Event doc-description.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_description of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,005 - MainThread - botocore.hooks - DEBUG - Event doc-description.sqs: calling handler <function add_paging_description at 0x107885de8>
2019-08-22 15:14:23,005 - MainThread - botocore.hooks - DEBUG - Event doc-synopsis-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_synopsis_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,006 - MainThread - botocore.hooks - DEBUG - Event doc-synopsis-end.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_synopsis_end of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,006 - MainThread - botocore.hooks - DEBUG - Event doc-options-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_options_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,006 - MainThread - botocore.hooks - DEBUG - Event doc-options-end.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_options_end of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,006 - MainThread - botocore.hooks - DEBUG - Event doc-subitems-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_subitems_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,006 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.add-permission: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,007 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.change-message-visibility: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,007 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.change-message-visibility-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,007 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.create-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,007 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,008 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-message-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,008 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,008 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.get-queue-attributes: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,008 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.get-queue-url: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,010 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.help: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,010 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-dead-letter-source-queues: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,010 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-queue-tags: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,010 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-queues: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,011 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.purge-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,011 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.receive-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,011 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.remove-permission: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,011 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.send-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,012 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.send-message-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,012 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.set-queue-attributes: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,012 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.tag-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,012 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.untag-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
2019-08-22 15:14:23,013 - MainThread - botocore.hooks - DEBUG - Event doc-relateditems-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_relateditems_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x107a49950>>
<string>:: (ERROR/3) Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.
2019-08-22 15:14:23,090 - MainThread - awscli.help - DEBUG - Running command: ['groff', '-m', 'man', '-T', 'ascii']
2019-08-22 15:14:23,111 - MainThread - awscli.help - DEBUG - Running command: ['less', '-R']

I am also getting same error:

➜ .aws aws sqs help
:: (ERROR/3) Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.

➜ .aws aws --version
aws-cli/2.0.16 Python/3.7.4 Darwin/19.2.0 botocore/2.0.0dev20

Please let me know if there is any workaround for this.

I am also getting the error showing up.

$ aws --version
aws-cli/2.0.25 Python/3.8.3 Darwin/19.5.0 botocore/2.0.0dev29


Expand for aws sqs help

$ aws sqs help
<string>:: (ERROR/3) Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.

list index out of range


Expand for aws sqs help --debug

$ aws sqs help --debug
2020-06-25 13:45:24,164 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.0.25 Python/3.8.3 Darwin/19.5.0 botocore/2.0.0dev29
2020-06-25 13:45:24,164 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['sqs', 'help', '--debug']
2020-06-25 13:45:24,164 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_timestamp_parser at 0x108c088b0>
2020-06-25 13:45:24,164 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x10849af70>
2020-06-25 13:45:24,164 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_binary_formatter at 0x108c56040>
2020-06-25 13:45:24,164 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x1084ef820>
2020-06-25 13:45:24,173 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x108ac6670>
2020-06-25 13:45:24,173 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_json_file_cache at 0x108a74820>
2020-06-25 13:45:24,194 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/2.0.25/libexec/lib/python3.8/site-packages/botocore/data/sqs/2012-11-05/service-2.json
2020-06-25 13:45:24,199 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sqs: calling handler <function add_waiters at 0x108c0fee0>
2020-06-25 13:45:24,218 - MainThread - botocore.hooks - DEBUG - Event doc-breadcrumbs.sqs: calling handler <bound method CLIDocumentEventHandler.doc_breadcrumbs of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,218 - MainThread - botocore.hooks - DEBUG - Event doc-title.sqs: calling handler <bound method CLIDocumentEventHandler.doc_title of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,218 - MainThread - botocore.hooks - DEBUG - Event doc-description.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_description of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,220 - MainThread - botocore.hooks - DEBUG - Event doc-description.sqs: calling handler <function add_paging_description at 0x108a79ee0>
2020-06-25 13:45:24,220 - MainThread - botocore.hooks - DEBUG - Event doc-synopsis-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_synopsis_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,220 - MainThread - botocore.hooks - DEBUG - Event doc-synopsis-end.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_synopsis_end of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,220 - MainThread - botocore.hooks - DEBUG - Event doc-options-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_options_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,220 - MainThread - botocore.hooks - DEBUG - Event doc-options-end.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_options_end of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,220 - MainThread - botocore.hooks - DEBUG - Event doc-subitems-start.sqs: calling handler <bound method ServiceDocumentEventHandler.doc_subitems_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,220 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.add-permission: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,220 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.change-message-visibility: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.change-message-visibility-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.create-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-message-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.delete-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.get-queue-attributes: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.get-queue-url: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.help: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-dead-letter-source-queues: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-queue-tags: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.list-queues: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.purge-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,221 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.receive-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,222 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.remove-permission: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,222 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.send-message: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,222 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.send-message-batch: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,222 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.set-queue-attributes: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,222 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.tag-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,222 - MainThread - botocore.hooks - DEBUG - Event doc-subitem.sqs.untag-queue: calling handler <bound method ServiceDocumentEventHandler.doc_subitem of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
2020-06-25 13:45:24,222 - MainThread - botocore.hooks - DEBUG - Event doc-relateditems-start.sqs: calling handler <bound method CLIDocumentEventHandler.doc_relateditems_start of <awscli.clidocs.ServiceDocumentEventHandler object at 0x108d64670>>
<string>:: (ERROR/3) Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.
2020-06-25 13:45:24,370 - MainThread - awscli.help - DEBUG - Running command: ['groff', '-m', 'man', '-T', 'ascii']
2020-06-25 13:45:24,400 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
  File "/usr/local/Cellar/awscli/2.0.25/libexec/lib/python3.8/site-packages/awscli/clidriver.py", line 335, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/usr/local/Cellar/awscli/2.0.25/libexec/lib/python3.8/site-packages/awscli/clidriver.py", line 507, in __call__
    return command_table[parsed_args.operation](remaining, parsed_globals)
  File "/usr/local/Cellar/awscli/2.0.25/libexec/lib/python3.8/site-packages/awscli/help.py", line 273, in __call__
    self.renderer.render(self.doc.getvalue())
  File "/usr/local/Cellar/awscli/2.0.25/libexec/lib/python3.8/site-packages/awscli/help.py", line 85, in render
    self._send_output_to_pager(converted_content)
  File "/usr/local/Cellar/awscli/2.0.25/libexec/lib/python3.8/site-packages/awscli/help.py", line 120, in _send_output_to_pager
    if not self._exists_on_path(cmdline[0]):
IndexError: list index out of range
2020-06-25 13:45:24,403 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255

list index out of range

I'll leave a link to https://docs.aws.amazon.com/cli/latest/reference/sqs/ in case people are looking for the help documentation.

Edit:
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sqs/index.html#cli-aws-sqs is the latest documentation.

Digging through, I remember setting PAGER to an empty string. This was to stop the CLI commands from using a pager, as I prefer the text to be dumped to the screen by default. This is what was causing my error.

$ PAGER="" aws sts help

list index out of range
# This will show the help page in less
$ PAGER="less" aws sts help
# This will show the help page on the CLI.
$ PAGER="randomwordsthatarentapager" aws sts help
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ikim23 picture ikim23  ·  3Comments

KimberleySDU picture KimberleySDU  ·  3Comments

alexejk picture alexejk  ·  3Comments

vadimkim picture vadimkim  ·  3Comments

rahul003 picture rahul003  ·  3Comments