node.js - Vogels:ValidationException:提供的关键元素与架构不匹配
问题描述
我在我的项目中使用 vogels 库(https://www.npmjs.com/package/vogels)。
下面是架构
test2-help-opens:
hashKey: time
timestamps: true
schema:
time: string
channel: string
status: number
这里时间列是哈希键。下面是我使用通道密钥从 DynamoDB 获取数据的代码
getOpenRequestModel().get({ channel : 'yes' };, (fetchErr, resp) => {
if(fetchErr){
console.log('Something went wrong to fetch',fetchErr);
response = { status:false, statusCode: 200, body: 'Something went wrong while fetching from open request' };
cb(null, response);
}else{
console.log('Response from findOpenRequest',resp);
response = { status:true, statusCode: 200, body: resp };
cb(null, response);
}
});
我面临验证错误{ ValidationException:提供的关键元素与架构不匹配
我已经尝试了很多事情,但没有找到任何解决方案,有人可以帮助我,这将非常有帮助。
解决方案
推荐阅读
- scala - 将 List[Either[A, B]] 转换为 Either[List[A], List[B]]
- kubernetes - 对 Kubernetes 清单文件中的值使用 ENV
- haskell - Haskell Emacs haskell-mode:运行“Ch f haskell-mode”以获取有关如何设置 Haskell 交互模式的说明
- python - 有没有什么方法可以不使用任何分隔符写入 Pandas 数据帧?
- excel - 用于输入信息的用户表单,当被召回时将显示之前输入的内容
- python - 在 Kivy 中定位选项卡式面板标题
- google-sheets - 如果列与其他单元格条件匹配,则动态查询以选择列
- kotlin - Apache POI 将单元格评估为 ErrorEval [#REF!],但结果工作簿没有任何 #REF!错误
- php - 使用 Guzzle 将请求 POST 到另一个站点
- python - 我正在尝试部署我的仪表板应用程序,但我正在接收包含我的数据的本地 txt 文件。我怎样才能做到这一点?