I have a Dialog-based intent that's been entirely configured via the Beta interaction builder.
My Lambda function is working correctly within the request, and returning a well-formed response (verified using an online JSON verifier), but the Alexa service is returning an error indicating "There was an error with the skill response."
It seems I'm probably not sending the exact structure or value for fields, but there's absolutely no way to see WHY the service is rejecting my response.
Because it's a Dialog-based intent, I cannot use the simulator to debug/validate responses from my Lambda method. So, questions:
1. How are we supposed to debug these kinds of errors?
2. Is there no library I can import into my Lambda code that does the same kind of verification done on the Alexa side (e.g. deeper than just JSON validation)? This would help a LOT.
For what it's worth, here's the response that's causing this error:
{
'version': '1.0',
'response': {
'outputSpeech': {
'text': 'Test question',
'type': 'PlainText'
},
'shouldEndSession': False,
'directives': [
{
'updatedIntent': {
'slots': {
'answer': {
'name': 'answer',
'value': 'NONE',
'confirmationStatus': 'NONE'
}
},
'name': 'PlayTriviaIntent',
'confirmationStatus': 'NONE'
},
'type': 'Dialog.Delegate'
}
]
},
'sessionAttributes': {
'correct_answer': 'C',
'played_intro': False
}
}