validate_e911_address returns invalid country code #4216
Labels
bug
This issue is a confirmed bug.
chime-sdk-voice
p2
This is a standard priority issue
service-api
This issue is caused by the service API, not the SDK implementation.
Describe the bug
The validate_e911_address api returns invalid country codes. If I enter "US" for the country code like in this python script (Address is a random address off zillow)
I get this response:
ValidationResult is 1, which means the address had to be modified, the Country was returned as "USA" instead of "US" like I passed it in.
But if I try to validate again with USA instead this time it errors out and says that is invalid
The documentation is also unclear how to handle apartment numbers or different units, as you can see it just removes it in the validation result but it seems like it should be returned as postDirectional looking through the api responses.
Link to api docs
Expected Behavior
The api validates the address, if changes are required it returns a valid address in the response
Current Behavior
invalid responses are returned/apartments are unable to be accounted for in emergency calls
Reproduction Steps
Use snippets above
Possible Solution
Fix bugs/Improve documentation
Additional Information/Context
No response
SDK version used
1.34.145
Environment details (OS name and version, etc.)
Ubuntu 24.04
The text was updated successfully, but these errors were encountered: