需要帮助修复Alexa技能 [英] Need help fixing Alexa Skill

查看:82
本文介绍了需要帮助修复Alexa技能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在js.do中遇到错误

I am getting an error in js.do that reads


ReferenceError:找不到变量:在第22行上导出

ReferenceError: Can't find variable:exports on line 22

第22行读取

exports.handler = function (event, context) {

当我在developer.amazon的服务模拟器中对其进行测试时,它会响应

When I test it in the service simulator on developer.amazon, it responds


无法调用远程端点,或者返回的响应无效

the remote endpoint could not be called, or the response it returned was invalid

这是什么意思,我该怎么解决?

What does this mean, and what can I do to fix it?

推荐答案

我之前创建Alexa Skills时也遇到了这个问题。

I have also come into this issue when creating Alexa Skills previously.

我发现,在文本模拟器上输入语音后(并得到错误);如果我复制标头并切换JSON模拟器,然后将请求粘贴到此处,它将可以正常工作。

I have found that after I enter the utterance on the text simulator (and get the error); if I copy the headers and switch the the JSON simulator and paste the request in there now it will work.

如果您有绿色勾号,则说明服务正在运行,这是Amazon Service Simulator的错误。

If you have the green tick your service is working and this is a bug with Amazon Service Simulator.

这篇关于需要帮助修复Alexa技能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆