CC: | Saad Senarios <saadsenarios2333 [...] gmail.com> |
Subject: | AWS DynamoDB not working with Swift 4.0 |
Date: | Thu, 18 Jan 2018 15:21:31 +0500 |
To: | bug-Amazon-DynamoDB [...] rt.cpan.org |
From: | Saad Furqan <saadfurqan2333 [...] gmail.com> |
I started a new project using XCode9.2 and Swift4.
I copied the basic example code for saving models to DynamoDB but I keep getting the following error:
“
Amazon DynamoDB Save Error: Error Domain=com.amazonaws.AWSCognitoIdentityErrorDomain Code=0 "(null)" UserInfo={__type=com.amazon.coral.validate#ValidationException, message=Supplied AttributeValue is empty, must contain exactly one of the supported datatypes}
"
But when I changed my project language from swift 4 to Swift 3.2, issue resolved and now it is working fine.
Please resolve this issue