我正在尝试更新DynamoDB并从Rasperry PI 2发送JSON数据,但是当我查看CloudWatch时,我会看到以下错误消息。
是否有人遇到此错误并了解任何解决方案?
2016-10-09 19:19:56.162 TRACEID:d898d574-2181-e999-4354-1d086e66ba32 PRINCIPALID:bf0e71506eb955a89d3a1cf7caecd33a3af27c13a4e560c5fa852f1d5d89a8e0 [ERROR] EVENT:DynamoActionFailure TOPICNAME:easyprk/sensorData CLIENTID:easyprk MESSAGE:Dynamo Insert record failed. The error received was One or more parameter values were invalid: An AttributeValue may not contain a null or empty binary type. (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException; Request ID: 0PNKCG5DO7SRFP49SOJIDSKD7RVV4KQNSO5AEMVJF66Q9ASUAAJG). Message arrived on: easyprk/sensorData, Action: dynamo, Table: sensorData, HashKeyField: serialKey, HashKeyValue: , RangeKeyField: None, RangeKeyValue: 1476040796073
答案 0 :(得分:1)
将项目插入DyanmoDB时,您需要确保没有任何空/ null属性。
答案 1 :(得分:0)
感谢您的帮助,评论对我有帮助,dynamoDb范围键不能为空。 当我通过非empty.it改变nosql列时,我现在可以从rasperry pi获取数据:)