aws-appsync-community icon indicating copy to clipboard operation
aws-appsync-community copied to clipboard

incorrect AWSPhone validation for +614839 prefix.

Open bdargan opened this issue 2 years ago • 1 comments

Valid mobile Australian mobile phone numbers starting with: +614839..... aren't supported in appsync, fails validation.

We have valid AU mobile phone number data from a phone system, real numbers that are sync'd into dynamodb.

Reproduce by putting a value +61 483 911 111 into your data set. Dynamodb in our case.

Query error response via:

AppSync response: "message": "Can't serialize value (path/to/phoneNumber) : Unable to serialize +614839..... as a valid phone number.

  • try a correct: +61 483 111 111 and see no errors.

Perhaps similar to issue: #211

bdargan avatar May 08 '23 01:05 bdargan

The number +614839..... is now working however appsync is now failing validation on +614943..... Which is a valid Australian number.

AppSync response: "message": "Can't serialize value (path/to/phoneNumber) : Unable to serialize +614943..... as a valid phone number.

Local version of libphonenumberjs which I believe is what Appsync uses for its phone number validation correct identifies the number as valid.