Testing example with Postman
wilson92 opened this issue · comments
I want to test this project locally but I got this response when I try to send a post request with Postman:
{
"version": "1.0",
"response": {
"directives": [],
"shouldEndSession": true,
"outputSpeech": {
"type": "SSML",
"ssml": "<speak>Error: not a valid request</speak>"
}
},
"sessionAttributes": {}
}
And the console logs:
missing request type: {}
missing request type: {}
missing request type: {}
missing request type: {}
missing request type: {}
But when I deploy the project on heroku and send json from amazon, everything works fine.
What do I wrong?
My request:
{
"session": {
"new": false,
"sessionId": "SessionId.563f99a5-e260-486e-be47-c6811f37d478",
"application": {
"applicationId": "amzn1.ask.skill.4b5e9f14-b527-419b-ba0e-8c00beb84dfc"
},
"attributes": {},
"user": {
"userId": "amzn1.ask.account.AEDUW3PTQSQK2USZY65WZOP63DZVZBKONL2VL2J2JQYZ2FFE3RZNMC6JGUJXAE5OWSPMV4ZOMTMIHDUHQFHPC2WSJND6GITAOA3ZNUWJIJWG42MGGJJHQNTI2UOOMELV2U245Z3B5PLTZST7XLLBT3I5FZAQ2LN7JL6S55PMD2HQGWR26V35USYFDUQGPFM4KHT6QCTRPE2OVKI"
}
},
"request": {
"type": "IntentRequest",
"requestId": "EdwRequestId.8c8b2235-9b9f-4145-9c36-74704739d191",
"intent": {
"name": "nameIntent",
"slots": {
"NAME": {
"name": "NAME"
}
}
},
"locale": "en-US",
"timestamp": "2017-10-14T12:31:58Z"
},
"context": {
"AudioPlayer": {
"playerActivity": "IDLE"
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.4b5e9f14-b527-419b-ba0e-8c00beb84dfc"
},
"user": {
"userId": "amzn1.ask.account.AEDUW8PTQSQK2USZY64WZOP64DZVZBKONL2VL2J2JQYZ2FFE3RZNMC6JGUJXAE5OWSPMV4ZOMTMIHDUHQFHPC2WSJND6GITAOA3ZNUWJIJWG42MGGJJHQNTI2UOOMELV2U245Z3B5PLTZST7XLLBT3I5FZAQ2LN7JL6S55PMD2HQGWR26V35USYFDUQGPFM4KHT6QCTRPE2OVKI"
},
"device": {
"supportedInterfaces": {}
}
}
},
"version": "1.0"
}
No thoughts other than someone should PR an update to this project ;)
I have updated my project and everything works fine. Thank you. :-)
@wilson92 But alexa-app-example (this project) is still broken? Care to fix it?