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

Issues with playlists #37

Open
jagauthier opened this issue Apr 9, 2024 · 1 comment
Open

Issues with playlists #37

jagauthier opened this issue Apr 9, 2024 · 1 comment

Comments

@jagauthier
Copy link

I'm hoping someone can help me out. I'm tearing my hair out trying to get playlists to work.

I have these playlists defined in navidrome:
image

Here's what I defined on the skill (along with the default ones)

image

Going down the line from the web devlopment interface:
"ask navi sonic play the playlist ton"

2024-04-09 17:22:42,854 - root - DEBUG - Request received: {'dialog_state': None,
 'intent': {'confirmation_status': 'NONE',
            'name': 'NaviSonicPlayPlaylist',
            'slots': {'playlist': {'confirmation_status': 'NONE',
                                   'name': 'playlist',
                                   'resolutions': None,
                                   'slot_value': None,
                                   'value': None}}},
 'locale': 'en-US',
 'object_type': 'IntentRequest',
 'request_id': 'amzn1.echo-api.request.39491dfc-7b60-41b8-b8f7-6112d4b4a875',
 'timestamp': datetime.datetime(2024, 4, 9, 17, 22, 42, tzinfo=tzlocal())}
2024-04-09 17:22:42,854 - root - DEBUG - In NaviSonicPlayPlaylist
2024-04-09 17:22:42,854 - root - DEBUG - In GeneralExceptionHandler
2024-04-09 17:22:42,855 - root - ERROR - General Exception: 'NoneType' object has no attribute 'value'
2024-04-09 17:22:42,855 - root - ERROR - Request Type Was: IntentRequest
2024-04-09 17:22:42,855 - root - ERROR - Intent Name Was: NaviSonicPlayPlaylist

"ask navi sonic play the playlist megadeth"
Same error as above.

"ask navi sonic play the playlist a. c. d. c."
(I typed AC/DC, it was converted to the above)

Looked for an album instead of playlist?

2024-04-09 17:25:21,261 - root - DEBUG - Response sent: {'api_response': None,
 'can_fulfill_intent': None,
 'card': None,
 'directives': None,
 'experimentation': None,
 'output_speech': {'object_type': 'SSML',
                   'play_behavior': None,
                   'ssml': "<speak>I couldn't find the album ACDC in the "
                           'collection.</speak>'},
 'reprompt': {'directives': None,
              'output_speech': {'object_type': 'SSML',
                                'play_behavior': None,
                                'ssml': "<speak>I couldn't find the album ACDC "
                                        'in the collection.</speak>'}},
 'should_end_session': False}

"ask navi sonic play the playlist progressive metal"
This seems to really break things. No JSON response on the server.
image

ask navi sonic play the playlist wheel

2024-04-09 17:28:12,142 - root - DEBUG - Request received: {'dialog_state': None,
 'intent': {'confirmation_status': 'NONE',
            'name': 'AMAZON.FallbackIntent',
            'slots': None},
 'locale': 'en-US',
 'object_type': 'IntentRequest',
 'request_id': 'amzn1.echo-api.request.5a640574-c370-4d63-9883-b030f7a51a78',
 'timestamp': datetime.datetime(2024, 4, 9, 17, 28, 11, tzinfo=tzlocal())}
2024-04-09 17:28:12,143 - root - DEBUG - In GeneralExceptionHandler
2024-04-09 17:28:12,143 - root - ERROR - General Exception: Unable to find a suitable request handler
2024-04-09 17:28:12,143 - root - ERROR - Request Type Was: IntentRequest
2024-04-09 17:28:12,143 - root - ERROR - Intent Name Was: AMAZON.FallbackIntent
2024-04-09 17:28:12,143 - werkzeug - INFO - 172.19.0.4 - - [09/Apr/2024 17:28:12] "POST / HTTP/1.0" 200 -

ask navi sonic play the playlist wicked bangers
Worked!!

ask navi sonic play the playlist puscifer

2024-04-09 17:29:58,762 - root - DEBUG - Request received: {'dialog_state': None,
 'intent': {'confirmation_status': 'NONE',
            'name': 'NaviSonicPlayPlaylist',
            'slots': {'playlist': {'confirmation_status': 'NONE',
                                   'name': 'playlist',
                                   'resolutions': None,
                                   'slot_value': None,
                                   'value': None}}},
 'locale': 'en-US',
 'object_type': 'IntentRequest',
 'request_id': 'amzn1.echo-api.request.20687878-7609-456d-a935-886321294dc1',
 'timestamp': datetime.datetime(2024, 4, 9, 17, 29, 58, tzinfo=tzlocal())}
2024-04-09 17:29:58,763 - root - DEBUG - In NaviSonicPlayPlaylist
2024-04-09 17:29:58,763 - root - DEBUG - In GeneralExceptionHandler
2024-04-09 17:29:58,763 - root - ERROR - General Exception: 'NoneType' object has no attribute 'value'
2024-04-09 17:29:58,763 - root - ERROR - Request Type Was: IntentRequest
2024-04-09 17:29:58,763 - root - ERROR - Intent Name Was: NaviSonicPlayPlaylist

The last 3 playlists are stock install and do not exist but still give weird responses.

image

@rosskouk
Copy link
Owner

Hi @jagauthier
Apologies for the late reply. If this is still an issue could you retest some of the playlists with these phrases?

"Alexa, open navi sonic"
<wait to hear "Ready">
"Play the playlist TON"

and see if that makes a difference, I use playlists regularly and don't have any problems. I did have problems with the invocation at one point which I'm reasonably sure this was based on my accent. I ended up changing the invocation to "Nimble Fire" as two words the Alexa would understand the majority of the time.

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

No branches or pull requests

2 participants