启用自动对话委托时出现Alexa技能元数据找不到错误
Alexa对话委托功能触发时出现内部服务错误(无CloudWatch日志)
我在Alexa开发者控制台中使用Dialog Delegation功能,已为EditContactDetailsIntent启用Auto Dialog Delegation,编写了EditContactDetailsIntentHandler和InProgressEditContactDetailsIntentHandler两个处理器。但触发该意图流程时,出现无CloudWatch日志痕迹的异常错误,错误信息如下:
{ "type": "INTERNAL_SERVICE_ERROR", "message": "Can't find skill bundle metadata for skillId amzn1.ask.skill.GUID_HERE locale en-GB stage development" }
处理器代码
EditContactDetailsIntentHandler
class EditContactDetailsIntentHandler(AbstractRequestHandler): def can_handle(self, handler_input): return (ask_utils.is_intent_name("EditContactDetailsIntent")(handler_input) and ask_utils.request_util.get_dialog_state(handler_input) == "COMPLETED") def handle(self, handler_input): speak_output = "This is EditContactDetailsIntent initiated when phone number is complete." return ( handler_input.response_builder .speak(speak_output) .ask(speak_output) .response )
InProgressEditContactDetailsIntentHandler
class InProgressEditContactDetailsIntentHandler(AbstractRequestHandler): def can_handle(self, handler_input): # type: (HandlerInput) -> bool return ( ask_utils.is_intent_name("EditContactDetailsIntent")(handler_input) and ask_utils.request_util.get_dialog_state(handler_input) != "COMPLETED" ) def handle(self, handler_input): currentIntent = handler_input.request_envelope.request.intent return ( handler_input.response_builder .add_delegate_directive(currentIntent) .response )
内容的提问来源于stack exchange,提问作者alshy
相关产品推荐
相关产品推荐

