Hi,
since 2 weeks ago, without any changes in my lambda code or in Alexa developer console, my skill (id=amzn1.ask.skill.ecd0fe84-1e99-40dc-af80-f82b01c06ea3amzn1.ask.skill.ecd0fe84-1e99-40dc-af80-f82b01c06ea3amzn1.ask.skill.ecd0fe84-1e99-40dc-af80-f82b01c06ea3) amzn1.ask.skill.ecd0fe84-1e99-40dc-af80-f82b01c06ea3is receiving an INTERNAL_SERVICE_ERROR in the Alexa skill request after sent Dialaog.Delegate.
I have open a case 12174764821 , but no answer at the moment.
My skill finds the nearest pharmacy open at the request time.
The position is taken by 2 method:
1) if the user has no grant the gelocalization or device address permission, the skill asks to user the address and the city - No Dialog delegate used and it still works.
2) if the user has grant the gelocalization or device address permission, the skill takes the position from geolocalization firstly, if it fails, it takes the value from the device address field and then it fills the city and address slots , and in the end it returns the Dialog.Delegate type response as below:
{
"version": "1.0",
"sessionAttributes": {},
"response": {
"shouldEndSession": false,
"directives": [
{
"type": "Dialog.Delegate",
"updatedIntent": {
"name": "GetNearest",
"confirmationStatus": "NONE",
"slots": {
"address": {
"name": "address",
"value": "Via Chambery 93 INT. 107/U 10142",
"confirmationStatus": "NONE"
},
"variousvalue": {
"name": "variousvalue",
"value": "la",
"confirmationStatus": "NONE",
"source": "USER",
"resolutions": {
"resolutionsPerAuthority": [
{
"authority": "amzn1.er-authority.echo-sdk.amzn1.ask.skill.ecd0fe84-1e99-40dc-af80-f82b01c06ea3.variousvalue",
"status": {
"code": "ER_SUCCESS_MATCH"
},
"values": [
{
"value": {
"name": "la",
"id": "c9089f3c9adaf0186f6ffb1ee8d6501c"
}
}
]
}
]
},
"slotValue": {
"type": "Simple",
"value": "la",
"resolutions": {
"resolutionsPerAuthority": [
{
"authority": "amzn1.er-authority.echo-sdk.amzn1.ask.skill.ecd0fe84-1e99-40dc-af80-f82b01c06ea3.variousvalue",
"status": {
"code": "ER_SUCCESS_MATCH"
},
"values": [
{
"value": {
"name": "la",
"id": "c9089f3c9adaf0186f6ffb1ee8d6501c"
}
}
]
}
]
}
}
},
"city": {
"name": "city",
"value": "Turin",
"confirmationStatus": "NONE"
}
}
}
}
]
}
}
In this case the request returned is an INTERNAL_SERVICE_ERROR with SessionEndedRequest:
"request": { "reason": "ERROR", "type": "SessionEndedRequest", "requestId": "amzn1.echo-api.request.2c85a266-6dce-4402-ba55-251f46694aa4", "locale": "it-IT", "timestamp": "2023-03-10T06:18:34Z", "reason": "ERROR",
"error": {
"type": "INTERNAL_SERVICE_ERROR",
"message": "Internal Server Error" }
Could you please help me to resolve the problem?
Thanks in advance.
Andrea