Dynamo Error "ConfigError: Missing region in config" when developing Alexa skill locally
Dynamo Error "ConfigError: Missing region in config" when developing Alexa skill locally
使用 Bespoken Tools, the error occurs when connecting to Dynamo (using the Alexa Node.js SDK) 在本地开发和调试 Alexa 技能时。
"get" call to Dynamo 上的 Alexa SDK 中发生错误。
出现此错误是因为 ~/.aws/config
中设置的区域未被 AWS 的 Node.js SDK 正确识别。
要解决此问题,只需显式调用以配置区域,如下所示:
AWS.config.update({
region: "us-east-1"
});
确保在使用 alexa-sdk 处理任何事件之前调用它,即在调用 alexa.execute()
.
之前
使用 Bespoken Tools, the error occurs when connecting to Dynamo (using the Alexa Node.js SDK) 在本地开发和调试 Alexa 技能时。
"get" call to Dynamo 上的 Alexa SDK 中发生错误。
出现此错误是因为 ~/.aws/config
中设置的区域未被 AWS 的 Node.js SDK 正确识别。
要解决此问题,只需显式调用以配置区域,如下所示:
AWS.config.update({
region: "us-east-1"
});
确保在使用 alexa-sdk 处理任何事件之前调用它,即在调用 alexa.execute()
.