使用 Bespoken Tools 在本地开发和调试 Alexa 技能时, 连接到 Dynamo 时发生错误(使用 Alexa Node.js SDK )。
错误发生在 "get" call to Dynamo 上的 Alexa SDK 中.
最佳答案
发生此错误是因为 ~/.aws/config
中设置的区域未被适用于 AWS 的 Node.js SDK 正确识别。
要解决这个问题,只需显式调用配置区域,如下所示:
AWS.config.update({
region: "us-east-1"
});
请务必在使用 alexa-sdk 处理任何事件之前调用它,即在调用 alexa.execute()
之前。
关于node.js - 在本地开发 Alexa 技能时 Dynamo 错误 "ConfigError: Missing region in config",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43501436/