大家好,下午好!
我对ASK有一个问题,因为当我试图使用"ask克隆“时,它会在我的控制台中返回这个错误:
问克隆人amzn1.ask.skill.900c47d3-532f-45b5-975b-1c995c6dbd88属性“令牌”不存在。/usr/local/lib/node_modules/ask-cli/node_modules/simple-oauth2/lib/client/access-token.js:21 if (this.token中的“expires_at”){^
(/usr/local/lib/node_modules/ask-cli/node_modules/simple-oauth2/lib/client/access-token.js:21:22):TypeError:不能使用' in‘操作符搜索未定义的AccessToken at Object.createAccessToken as create at isTokenExpired as create at Object.tokenRefreshAndRead (/usr/local/lib/node_ )中的“expires_at”modules/ask-cli/lib/utils/oauth-wrapper.js:84:10) at Object.module.exports.requestWithUrl (/usr/local/lib/node_modules/ask-cli/lib/api/request-wrapper.js:45:18) at Object.module.exports.request (/usr/local/lib/node_modules/ask-cli/lib/api/request-wrapper.js:26:20) at Object.callGetSkillStatus (/usr/local/lib/node_modules/ask- )cli/lib/api/api-rapper.js:229:20)在(/usr/local/lib/node_modules/ask-cli/lib/api/skill.js:213:20) at Command.listener (/usr/local/lib/node_modules/ask-cli/node_modules/commander/index.js:315:8) at Command.emit (events.js:182:13) at Command.parseArgs (/usr/local/lib/node_modules/ask )-cli/node_modules/ Command.parse /index.js:654:12)(/usr/local/lib/node_modules/ask-cli/bin/ask-api.js:25:6) at Module._compile (内部/模块/cjs/loader.js:707:30),Object.Module._extensions..js (内部/模块/cjs/loader.js:718:10),Module.load (内部/模块/cjs/loader.js:605:32)
我已经搜索了地球的解决方案,并找到了一种方法来绕过这是“降级”的oauth从'1.0.2‘到'1.5.0’,但这似乎是行不通的。
对此有什么意见或建议吗?
发布于 2018-12-12 06:25:14
不久前我遇到了这个问题。我卸载了cli,并按照this教程安装了ASK-CLI,它成功了。
当第一次安装ASK时,它需要配置我们的aws帐户和帐户。有时,我们的帐户没有得到正确的配置,导致克隆和部署技能方面的问题。发生这种情况是因为CLI的身份验证令牌与我们的帐户不匹配。
溶液
再次尝试运行ask init命令。如果这不起作用
卸载ASK并重新安装。然后跑去问它
https://stackoverflow.com/questions/53729874
复制相似问题