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

Chime SDK Voice - ValidateE911Address API returns invalid country code #789

Open
tim-finnigan opened this issue Jul 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working chime-sdk-voice service-api This issue pertains to the AWS API

Comments

@tim-finnigan
Copy link

Original issue: boto/boto3#4216 (ref: V1461348548)

@tim-finnigan tim-finnigan added bug Something isn't working service-api This issue pertains to the AWS API chime-sdk-voice labels Jul 23, 2024
@tim-finnigan tim-finnigan self-assigned this Jul 23, 2024
@cjhelloletsgo
Copy link

An update, this api considers roads with slashes to be invalid because it uses the regex pattern [\w ]+. This should be fixed. Here is an example of a valid address that is impossible to use: 2723 B 1/4 Rd, Grand Junction, CO 81503 (Random address off Zillow)

import boto3

chime_sdk_voice_client = boto3.client("chime-sdk-voice")

chime_response = chime_sdk_voice_client.validate_e911_address(
    AwsAccountId="YOUR_ACCOUNT_ID_GOES_HERE",
    StreetNumber="2723",
    StreetInfo="B 1/4 Rd",
    City="Grand Junction",
    State="CO",
    Country="US",
    PostalCode="81503",
)

print(f"chime_response: {chime_response}")
Traceback (most recent call last):
  File "/home/colton/projects/work/firstfire/agero/test.py", line 5, in <module>
    chime_response = chime_sdk_voice_client.validate_e911_address(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/colton/projects/work/firstfire/agero/.venv/lib/python3.12/site-packages/botocore/client.py", line 565, in _api_call
    return self._make_api_call(operation_name, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/colton/projects/work/firstfire/agero/.venv/lib/python3.12/site-packages/botocore/client.py", line 1021, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.BadRequestException: An error occurred (BadRequestException) when calling the ValidateE911Address operation: 1 validation error detected: Value at 'streetInfo' failed to satisfy constraint: Member must satisfy regular expression pattern: [\w ]+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chime-sdk-voice service-api This issue pertains to the AWS API
Projects
None yet
Development

No branches or pull requests

2 participants