Invalid AWSPhone on AppSync

0

We are creating a record on AppSync with the following valid phone number: +65 8051 2187 but are returned with an invalid 'AWSPhone' value. Wouldn't the AWSPhone validation needs an update?

gefragt vor 2 Jahren439 Aufrufe
1 Antwort
1

I’m having the same issue. AppSync is returning an error when a field is of type AWSPhone and has correct payload.

Here is the error message returned: "Variable 'phone' has an invalid value. Unable to parse +13451112222 as a valid phone number."

The phone number +13451112222 is valid (I put 1112222 here to hide real one), and passes validation on many other phone validation libraries. Is just that the area code 345 is from Cayman Islands.

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen