简体   繁体   English

问 CLI:模拟不解析技能,返回 IntentForDifferentSkill 错误

[英]Ask CLI: Simulate not resolving skill, returning IntentForDifferentSkill error

I'm trying to use the Ask CLI simulator to test my skill and nothing I input invokes it correctly.我正在尝试使用 Ask CLI 模拟器来测试我的技能,但我输入的任何内容都无法正确调用它。 The test simulator on the website works fine, but when I try to use a command like ask simulate -l en-US -t "ask test skill what can I say" I get back "This utterance did not resolve to any intent in your skill. Please invoke your skill and try again with a different utterance or update your interaction model to include this utterance before testing again.".网站上的测试模拟器工作正常,但是当我尝试使用像 asksimulation -l en-US -t 之类的命令“询问测试技能我能说什么”时,我得到了回复“这句话没有解决您的任何意图技能。请调用您的技能并使用不同的话语重试,或者在再次测试之前更新您的交互模型以包含此话语。”。 It doesn't matter if I append Alexa, insert commas, or even leave off everything except the "ask test skill", it always returns the same error.我是否附加 Alexa,插入逗号,甚至省略除“询问测试技能”之外的所有内容都没有关系,它总是返回相同的错误。 This is the same account I am logged in on the skill, and like I said previously the web test interface works just fine.这是我在技能上登录的同一个帐户,就像我之前所说的,Web 测试界面工作正常。 I've tried searching online for "IntentForDifferentSkill" but get very few results.我试过在网上搜索“IntentForDifferentSkill”,但得到的结果很少。

Thanks.谢谢。

If you run如果你跑

ask simulate -l en-US -t "alexa open test skill"

does that work?那样有用吗?

If you're still getting the IntentForDifferentSkill error try passing in the如果您仍然收到IntentForDifferentSkill错误,请尝试传入

--force-new-session 

flag which I found resolved the issue for me.我发现的标志为我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM