Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

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

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

Comments

@tim-finnigan
Copy link
Contributor

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 ]+

@tim-finnigan
Copy link
Contributor Author

Thanks for following up, I have passed along that issue to the Chime SDK team as well. They have created a backlog item for further tracking of this. I reopened the original issue (boto/boto3#4216) to continue tracking in GitHub.

Copy link

This issue is now closed.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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