Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on testing #131

Open
merrick777 opened this issue Feb 19, 2017 · 19 comments
Open

Errors on testing #131

merrick777 opened this issue Feb 19, 2017 · 19 comments

Comments

@merrick777
Copy link

Hi,
Excited to get this going but am true novice to setting up this type of thing. I got through everything but on testing, I get "There was a problem with the requested skills response". I read other comments here with same issue and so I grabbed the Lambda logs. Help pls....
screen shot 2017-02-13 at 9 52 42 am
screen shot 2017-02-13 at 9 52 07 am

@merrick777 merrick777 changed the title Errors Errors on testing Feb 19, 2017
@pheintzelman
Copy link
Contributor

Thanks for posting the logs but these don't quite capture what I need. My best guess is you didn't rename example.options.js to options.js

@merrick777
Copy link
Author

Hi Paul,
I definitely did change example.options.js to options.js HOWEVER I may have it in the wrong location. I searched for the file on my computer and I found it on my desktop (which is where I temporarily put it while zipping it into src.zip for uploading). i found it nowhere else. Where should I have the file? Thanks.

@pheintzelman
Copy link
Contributor

You need to include it in the zip you upload to lambda

@merrick777
Copy link
Author

Ok, so that's where it is located and the name was changed as it should. So that's not the problem... how else can we diagnose the problem if the logs didn't give enough info?

@merrick777
Copy link
Author

Does this help? When I use browser to hit mydns.org:5005/zones here's what I get:

[{"uuid":"RINCON_949F3E0175D401400","coordinator":{"uuid":"RINCON_949F3E0175D401400","state":{"currentTrack":{"artist":"Hey Violet","title":"Guys My Age [Explicit]","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":212,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b43?sid=201&flags=8224&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1"},"nextTrack":{"artist":"Låpsley","title":"Hurt Me","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":231,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b54?sid=201&flags=8224&sn=1","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1"},"volume":31,"mute":false,"trackNo":2,"elapsedTime":16,"elapsedTimeFormatted":"00:00:16","playbackState":"PAUSED_PLAYBACK","playMode":{"repeat":"none","shuffle":true,"crossfade":true}},"roomName":"Den","coordinator":"RINCON_949F3E0175D401400","groupState":{"volume":31,"mute":false}},"members":[{"uuid":"RINCON_949F3E1059FC01400","state":{"currentTrack":{"artist":"Hey Violet","title":"Guys My Age [Explicit]","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":212,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b43?sid=201&flags=8224&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1"},"nextTrack":{"artist":"Låpsley","title":"Hurt Me","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":231,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b54?sid=201&flags=8224&sn=1","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1"},"volume":31,"mute":false,"trackNo":2,"elapsedTime":16,"elapsedTimeFormatted":"00:00:16","playbackState":"PAUSED_PLAYBACK","playMode":{"repeat":"none","shuffle":true,"crossfade":true}},"roomName":"Living Room","coordinator":"RINCON_949F3E0175D401400","groupState":{"volume":0,"mute":false}},{"uuid":"RINCON_949F3E0175D401400","state":{"currentTrack":{"artist":"Hey Violet","title":"Guys My Age [Explicit]","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":212,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b43?sid=201&flags=8224&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1"},"nextTrack":{"artist":"Låpsley","title":"Hurt Me","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":231,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b54?sid=201&flags=8224&sn=1","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1"},"volume":31,"mute":false,"trackNo":2,"elapsedTime":16,"elapsedTimeFormatted":"00:00:16","playbackState":"PAUSED_PLAYBACK","playMode":{"repeat":"none","shuffle":true,"crossfade":true}},"roomName":"Den","coordinator":"RINCON_949F3E0175D401400","groupState":{"volume":31,"mute":false}},{"uuid":"RINCON_949F3E0175BE01400","state":{"currentTrack":{"artist":"Hey Violet","title":"Guys My Age [Explicit]","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":212,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b43?sid=201&flags=8224&sn=1","type":"track","stationName":"","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b43%3fsid%3d201%26flags%3d8224%26sn%3d1"},"nextTrack":{"artist":"Låpsley","title":"Hurt Me","albumArtUri":"/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1","duration":231,"uri":"x-sonosapi-hls-static:catalog%2fplaylists%2fB06W2N2XBC%2f%23chunk%2b54?sid=201&flags=8224&sn=1","absoluteAlbumArtUri":"http://192.168.1.26:1400/getaa?s=1&u=x-sonosapi-hls-static%3acatalog%252fplaylists%252fB06W2N2XBC%252f%2523chunk%252b54%3fsid%3d201%26flags%3d8224%26sn%3d1"},"volume":30,"mute":false,"trackNo":2,"elapsedTime":16,"elapsedTimeFormatted":"00:00:16","playbackState":"PAUSED_PLAYBACK","playMode":{"repeat":"none","shuffle":true,"crossfade":true}},"roomName":"Kitchen","coordinator":"RINCON_949F3E0175D401400","groupState":{"volume":0,"mute":false}}]},{"uuid":"RINCON_B8E937AD439E01400","coordinator":{"uuid":"RINCON_B8E937AD439E01400","state":{"currentTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":"","type":"track","stationName":""},"nextTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":""},"volume":71,"mute":false,"trackNo":0,"elapsedTime":0,"elapsedTimeFormatted":"00:00:00","playbackState":"STOPPED","playMode":{"repeat":"none","shuffle":false,"crossfade":false}},"roomName":"Patio/Pool","coordinator":"RINCON_B8E937AD439E01400","groupState":{"volume":71,"mute":false}},"members":[{"uuid":"RINCON_B8E937AD439E01400","state":{"currentTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":"","type":"track","stationName":""},"nextTrack":{"artist":"","title":"","album":"","albumArtUri":"","duration":0,"uri":""},"volume":71,"mute":false,"trackNo":0,"elapsedTime":0,"elapsedTimeFormatted":"00:00:00","playbackState":"STOPPED","playMode":{"repeat":"none","shuffle":false,"crossfade":false}},"roomName":"Patio/Pool","coordinator":"RINCON_B8E937AD439E01400","groupState":{"volume":71,"mute":false}}]}]

@pheintzelman
Copy link
Contributor

not sure what is going wrong but it is in your lambda function. Try downloading this repo again and re-uploading it to lambda.

@merrick777
Copy link
Author

merrick777 commented Feb 21, 2017

Thanks Paul- I think I'm really close... I nuked and then started over with Lambda. Now when I test, I get just one error:

"errorMessage": "Invalid applicationId"

Where would I fix that?

Now if I say 'Alexa, ask sonos to play billy joel in the kitchen', she responds with "OK" but no music in the kitchen.

What is the syntax to set Amazon Music as the default music service? (I think Amazon Music is the correct name for their new paid service).

@pheintzelman
Copy link
Contributor

pheintzelman commented Feb 21, 2017

Amazon Music is not one of the supported services. As for the id issue that is because you need to add your skill id to the test. This will just fix the test not any issues you are having with the skill.

@merrick777
Copy link
Author

merrick777 commented Feb 21, 2017

I feel like I fell down, only 2 feet from the Finish Line. What else can be wrong? If I give a proper command to Echo (ie: "Alexa, Ask sonos to play Billy Joel in the Kitchen"), she will respond with "OK". But no action happens. I've confirmed that I've edited the roomName in each location in presets.json. Some possible issues that I see:

  1. In Lambda Envir Var area, I have mydnsname.org:5005 (is it correct that it should NOT have "http://" and it should NOT have "/zones"?
  2. From browser, if I hit mydnsname.org:5005 I see a nicely formatted, sonos API logo and info page, HOWEVER if I hit mydnsname.org:5005/zones all I can see is a full page of code... nothing really readable. That's not what I should be seeing... is it? If not, what may be causing it?

If these are not the problem, what else can be?

@pheintzelman
Copy link
Contributor

The host var should just be mydnsname.org
5005 is the port

@merrick777
Copy link
Author

So I removed the :5005. Still no go.... what else could it be? Still, when I hit mydnsname.org:5005/zones I get nothing but code.

screen shot 2017-02-21 at 12 03 32 pm

@merrick777
Copy link
Author

merrick777 commented Feb 21, 2017

I tried "Publish New Version" after removing the :5005 from Environment Var. Still no good.

screen shot 2017-02-21 at 12 13 37 pm
screen shot 2017-02-21 at 12 13 51 pm

@pheintzelman
Copy link
Contributor

I am still a bit confused with what issues you are experiencing. I think you should focus on getting the test to work. In the test add your skill app id and then run the test. If it doesn't work share the error from the log. I really want to help you but don't have quite enough info to go on.

@merrick777
Copy link
Author

merrick777 commented Feb 22, 2017

Thanks Paul. If I tested correctly, it appears to have PASSED.

screen shot 2017-02-22 at 9 55 02 am

To get this, I went Actions > Configure Test Event. I used the 'Hello World' test and inserted my AppID in the code. When I went in to get the AppID, I noticed that the app is in "Development" status. I wasn't supposed to "Publish" it... Was I?

So if I'm passing the testing, where else should I be looking to troubleshoot?

@merrick777
Copy link
Author

By the way, I believe I checked all the stupid things: Sonos are powered on, they're on same network as my server, nothing to as streaming at the time I checked.

I do NOT have a default music service set up because I currently use Amazon Music.... but if I can get this going, I'd gladly switch to Spotify in order to get the full effect of this.

@pheintzelman
Copy link
Contributor

So what isn't working? What is the exact phase you are asking Alexa and what is the response?

@merrick777
Copy link
Author

I cannot get ANY sound coming from any of the sonos speakers from commands given through Echo. All my Sonos are properly working via the Sonos app, on the same network as my server.

Phrasing: I tried EVERY phrase that RGraciano has here in the git... For each command Echo said "OK", but then no sound came from the sonos. Here are a few that I tried:

screen shot 2017-02-23 at 12 57 54 am

(Of course, I used correct room names, artists, and song names.)

I thought maybe the Sonos was muted or volume all the way down, so I tried these also:

  • Alexa, ask sonos to unmute the kitchen (She said "OK")
  • Alexa, ask sonos to resume all (She said "OK")
  • Alexa, ask sonos to turn up the volume in the den (She said "OK")
    But none of the above made any music play.

INTERESTING: When I said "Alexa, ask sonos what's playing in the kitchen", she replied with a specific song. She replied with a different song when I asked about the den. Both are songs that I recently played.

Just to show that I think the rooms are set up properly, here's a piece of presets.json:

screen shot 2017-02-23 at 1 14 52 am

Is presets.json the only place where I am designating sonos speaker names (rooms)?

Just to show that Sonos is set up properly, here's from the Sonos app:

screen shot 2017-02-23 at 1 18 21 am

@merrick777
Copy link
Author

merrick777 commented Feb 23, 2017

Now Partially Working
After posting my last comment above, I tried putting spotify as default_music_service in Lambda Env Var, and finally I got my first sounds to come out of sonos speakers! But it's not playing what I'm asking for.... it only plays the last song that I had played in the Spotify app. Specifically, I said "Alexa, ask sonos to play Paul McCartney in the kitchen". Her response: "Started playing artist Paul McCartney".... but the actual music that played was AC/DC (which was the last thing I played from the Spotify app).

2/23 edit: I also noticed that genres of music don't work... if I say "Alexa, ask sonos to play rock music in the ROOM", she will reply "This command does not work unless you set default Line-In".

@rgraciano
Copy link
Owner

hi @merrick777 - did you get it working? you had a few issues open, so i'm not sure what the current state is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants