Skip to content

You found a bug....v 0.15.0 #407

Description

Attaching traceback:

You've found a bug! Please, raise an issue attaching the following traceback
https://github.com/jorgebastida/awslogs/issues/new

Version: 0.15.0
Python: 3.13.2 (main, Feb 4 2025, 14:51:09) [Clang 16.0.0 (clang-1600.0.26.6)]
boto3 version: 1.35.37
Platform: macOS-15.3.1-arm64-arm-64bit-Mach-O
Args: ['/opt/homebrew/bin/awslogs', 'get', '/var/log/squid/access.log', '--profile', 'shdev-xro', '--aws-region', 'us-west-2 us-east-1 us-east-2 sa-east-1 eu-west-1 eu-central-1 ap-south-1', '--start=1d ago']
Config: {options}

Traceback (most recent call last):
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/awslogs/bin.py", line 206, in main
logs = AWSLogs(**vars(options))
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/awslogs/core.py", line 88, in init
self.client = boto3_client(
~~~~~~~~~~~~^
self.aws_profile,
^^^^^^^^^^^^^^^^^
...<4 lines>...
self.aws_endpoint_url,
^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/awslogs/core.py", line 45, in boto3_client
return session.client(
~~~~~~~~~~~~~~^
"logs",
^^^^^^^
...<4 lines>...
endpoint_url=aws_endpoint_url or None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/boto3/session.py", line 297, in client
return self._session.create_client(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
service_name,
^^^^^^^^^^^^^
...<8 lines>...
config=config,
^^^^^^^^^^^^^^
)
^
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/botocore/session.py", line 924, in create_client
region_name = self._resolve_region_name(region_name, config)
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/botocore/session.py", line 1023, in _resolve_region_name
validate_region_name(region_name)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/awslogs/0.15.0_1/libexec/lib/python3.13/site-packages/botocore/utils.py", line 1318, in validate_region_name
raise InvalidRegionError(region_name=region_name)
botocore.exceptions.InvalidRegionError: Provided region_name 'us-west-2 us-east-1 us-east-2 sa-east-1 eu-west-1 eu-central-1 ap-south-1' doesn't match a supported format.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions