dmhacker / alexa-youtube-skill

Allows Alexa to play audio from YouTube videos
MIT License
243 stars 109 forks source link

NO_RESULTS_FOUND reply for all GetVideo Intents - also Herokuapp does not find anything #75

Open timguy opened 4 years ago

timguy commented 4 years ago

I followed the set up process (version 3.0.5) but with the following request I only got NO_RESULTS_FOUND (did not return any results on YouTube). Alexa recognize "lola" correctly but did not found anything. Also for "prince" and all others it's the same:

{
    "version": "1.0",
    "session": {
        "new": true,
        "sessionId": "amzn1.echo-api.session.21560574-ef31-4840-a39d-35f4db45aa33",
        "application": {
            "applicationId": "amzn1.ask.skill.xxxx"
        },
        "user": {
            "userId": "xxx"
        }
    },
    "context": {
        "AudioPlayer": {
            "playerActivity": "IDLE"
        },
        "System": {
            "application": {
                "applicationId": "amzn1.ask.skill.xxxx"
            },
            "user": {
                "userId": "amzn1.ask.account.xxxxx"
            },
            "device": {
                "deviceId": "amzn1.ask.device.xxxx",
                "supportedInterfaces": {
                    "AudioPlayer": {}
                }
            },
            "apiEndpoint": "https://api.eu.amazonalexa.com",
            "apiAccessToken": "xxx"
        },
        "Viewport": {
            "experiences": [
                {
                    "arcMinuteWidth": 246,
                    "arcMinuteHeight": 144,
                    "canRotate": false,
                    "canResize": false
                }
            ],
            "shape": "RECTANGLE",
            "pixelWidth": 1024,
            "pixelHeight": 600,
            "dpi": 160,
            "currentPixelWidth": 1024,
            "currentPixelHeight": 600,
            "touch": [
                "SINGLE"
            ],
            "video": {
                "codecs": [
                    "H_264_42",
                    "H_264_41"
                ]
            }
        },
        "Viewports": [
            {
                "type": "APL",
                "id": "main",
                "shape": "RECTANGLE",
                "dpi": 160,
                "presentationType": "STANDARD",
                "canRotate": false,
                "configuration": {
                    "current": {
                        "video": {
                            "codecs": [
                                "H_264_42",
                                "H_264_41"
                            ]
                        },
                        "size": {
                            "type": "DISCRETE",
                            "pixelWidth": 1024,
                            "pixelHeight": 600
                        }
                    }
                }
            }
        ]
    },
    "request": {
        "type": "IntentRequest",
        "requestId": "amzn1.echo-api.request.991e4ab9-c214-44a7-80bf-742602a64c85",
        "locale": "de-DE",
        "timestamp": "2020-07-08T09:33:21Z",
        "intent": {
            "name": "GetVideoGermanIntent",
            "confirmationStatus": "NONE",
            "slots": {
                "VideoQuery": {
                    "name": "VideoQuery",
                    "value": "lola",
                    "resolutions": {
                        "resolutionsPerAuthority": [
                            {
                                "authority": "amzn1.er-authority.echo-sdk.amzn1.ask.skill.e92be6a5-cde0-40ee-82bd-3d63e090de93.VIDEOS",
                                "status": {
                                    "code": "ER_SUCCESS_MATCH"
                                },
                                "values": [
                                    {
                                        "value": {
                                            "name": "lola",
                                            "id": "fceeb9b9d469401fe558062c4bd25954"
                                        }
                                    }
                                ]
                            }
                        ]
                    },
                    "confirmationStatus": "NONE",
                    "source": "USER"
                }
            }
        }
    }
}

Response:


{
    "body": {
        "version": "1.0",
        "response": {
            "outputSpeech": {
                "type": "SSML",
                "ssml": "<speak>Keine Ergebnisse auf Youtube gefunden.</speak>"
            },
            "directives": [],
            "shouldEndSession": true,
            "type": "_DEFAULT_RESPONSE"
        },
        "sessionAttributes": {}
    }
}

Also cloud watch logs just tell me: ...entered search query 'lola'.

timguy commented 4 years ago

I just came across the link for https://dmhacker-youtube.herokuapp.com. Also here I can not find "lola", "prince", "madonna" or whatever. Are my searches that weird or is there an issue in the herokuapp?

GET https://dmhacker-youtube.herokuapp.com/search/lola leads to {"state":"error","message":"No results found"}

timguy commented 4 years ago

Root cause is here: https://github.com/dmhacker/dmhacker-youtube/issues/18