LoginSignup
6
2

More than 5 years have passed since last update.

Cognitoでfailed to satisfy constraintエラーが出る場合

Last updated at Posted at 2018-04-16

Lambda + CognitoでEメール検証メッセージをカスタマイズ使用とした場合に以下のようなエラーが出ることがある。

1 validation error detected: Value '...' at 'emailBody' failed to satisfy constraint: Member must satisfy regular expression pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*\{####\}[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*

原因

全角のスペースが上記の正規表現に含まれてないための模様。

対応

全角スペースを除却することで解決。

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2