alexa-samples / skill-sample-nodejs-audio-player

An Alexa Skill Sample showing how to play long form audio in 3P-skills
Other
470 stars 319 forks source link

Alexa keeps to tell me "problem with the response of the skill" #44

Closed dakoller closed 6 years ago

dakoller commented 7 years ago

The skeleton of the skill works now well... so all non-audio commands "somehow" work.

However whenever I would expect some audio to be played i get the german pendant of "There was a problem with the response, which this skill gave back". But my cloudwatch logs do tell me not, that there was an error.

..where and how can i put the skill output into cloudwatch logs to see the feedback?

n2questdev commented 7 years ago

Hi - I had similar issues, I've fixed with the following:

  1. APP_ID vs appId. make sure to have _alexa.APPID = 'your_skill_id;
  2. Audio links must use https://
  3. I haven't got complete grip on this, but the issue is with canThrowCard function in stateHandlers.js. For now I'm returning true always commenting all the logic from original author
  4. Sometimes updating lambda function doesn't reflect immediately. Give it few minutes soaking time before testing again.

Hope this helps and good luck!

gubendran-tech commented 7 years ago

Hi @ajuluri

I corrected the alexa.APP_ID and verified the https:// link. I could play the link from the browser. I also updated canThrowCard function to return always true and waited for sometime and tested the code and no luck.

Is there any options you could suggest? Below is the directives from test simulator

"directives": [ { "playBehavior": "REPLACE_ALL", "audioItem": { "stream": { "token": "0", "url": "https://s3.amazonaws.com/tamilcomedydialogues/Gowndamani+-+Azhagu+Raja.mp3", "offsetInMilliseconds": 0 } } },

Thanks, Gubendran

jasonabradley commented 7 years ago

@dakoller

You can add a line inside the intents to capture to CloudWatch Logs what is coming in to the function.

console.log(this.event);

sebsto commented 6 years ago

Have a look at https://github.com/alexa/skill-sample-nodejs-audio-player/blob/mainline/single-stream/lambda/src/index.js#L11 to demonstrate how you can capture the full request / response.

Also, the audio player directive are only supported on actual devices. EchoSim or the web simulator will not play any song.

I am closing this now, feel free to re-open with more details if you still are facing this issue.