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

error #76

Closed adi701 closed 6 years ago

adi701 commented 6 years ago

![capture](https://user-images.githubusercontent.com/33590651/36071432-3b7fd510-0f34-11e8-8335-5a39b5e06acf.PNG

Can someone tell me what this error is .

bobuehlein commented 6 years ago

That's only part of the error... but I'd look at your files and look for "ar Alexa". I thought that should be var Alexa.

adi701 commented 6 years ago

that's what i thought at first but that's not it . I have uploaded my entire zip file.

It would mean a lot if you can go through it and tel me what's wrong

player.zip

bobuehlein commented 6 years ago

Is this going to be for multiple audio clips or a single stream source?

One thing I notice... I don't see any of the nodejs files. Did you run: npm install?

adi701 commented 6 years ago

the code is for multiple stream

prob

i have attached the new error encountered after fixing the first one i have updated the appid but still it shows the application value is invalid

js.zip

this is the new source code after including node modules

Thank you

sebsto commented 6 years ago

The error comes from the code. The skill ID you mentioned in your code is not the actual skill ID. Please copy paste the correct app id at https://github.com/alexa/skill-sample-nodejs-audio-player/blob/mainline/multiple-streams/js/constants.js#L6

adi701 commented 6 years ago

hi

I have cross checked the above file with my application id and my test cases also .

i am getting the same error again and again

i have uploaded my new source file

js.zip

thanks

sebsto commented 6 years ago

OK, you have the App ID in the code, but do you have the same App ID in the JSON request you're sending to the code ? What is your JSON in the Lambda Test console ?

adi701 commented 6 years ago

capture

This is the test JSON

sebsto commented 6 years ago

Did you made any progress on this one ? I would suggest to read the log and find / understand any error message throw there. Another suggestion is to write a small wrapper to call your code locally - it is easier to debug when running from your laptop and the error message are easier to capture. You can read an example in the unit test of the single stream example : https://github.com/alexa/skill-sample-nodejs-audio-player/tree/mainline/single-stream/lambda/test

adi701 commented 6 years ago

Thanks for the help . I found a way to bypass the application id problem

sebsto commented 6 years ago

That's a great news. Would you mind to share it here to help others that would have the same problem ?

sebsto commented 6 years ago

Closing because lack of activity since several months. Feel free to reopen if you still have a problem with this.