keatontaylor / alexa-actions

A README and associated code to get actionable notifications setup for Alexa devices.
GNU General Public License v3.0
398 stars 187 forks source link

There was a problem with the requested skill's response #78

Closed razorface1978 closed 2 years ago

razorface1978 commented 3 years ago

this is all i get when i try to open custom actions

barto95100 commented 3 years ago

YEs I have the same error :(

sandersc242 commented 3 years ago

Same error :(

davidhpayne commented 3 years ago

Same problem here too!

sandersc242 commented 3 years ago

Same problem here too!

I just ended up using the Alexa media integration to execute routines and play music ect. Which surprisingly works really well so far

davidhpayne commented 3 years ago

Same problem here too!

I just ended up using the Alexa media integration to execute routines and play music ect. Which surprisingly works really well so far

Can you get Alexa to ask questions for you to respond to with just the media player though? I thought you needed this as well for actionable notifications.

sandersc242 commented 3 years ago

you

I intended to use it to trigger routines. Hopefully someone figures this out because actionable notifications would be useful

razorface1978 commented 3 years ago

i wonder if hes going to check this thread or just not support this anymore

Bobbyiv commented 3 years ago

i wonder if hes going to check this thread or just not support this anymore

Please join discord for help. Link will expires in 7 days. (2021/3/1 to 2021/3/8)

https://discord.gg/qUErTEz2

Bobbyiv commented 3 years ago

you

I intended to use it to trigger routines. Hopefully someone figures this out because actionable notifications would be useful

Please join discord for help. Link will expires in 7 days. (2021/3/1 to 2021/3/8)

https://discord.gg/qUErTEz2

razorface1978 commented 3 years ago

Didn’t work bad invite

Sent from Mail for Windows 10

From: Bobbyiv Sent: Monday, March 1, 2021 9:19 PM To: keatontaylor/alexa-actions Cc: razorface1978; Author Subject: Re: [keatontaylor/alexa-actions] There was a problem with therequested skill's response (#78)

i wonder if hes going to check this thread or just not support this anymore Please join discord for help. Link will expires in 7 days. (2021/3/1 to 2021/3/8) https://discord.gg/qUErTEz2 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

keatontaylor commented 3 years ago

I think I need a bit more info to hopefully provide some help. Generally, you can always look into the CloudWatch logs for the lambda function to see what exactly is causing it to say that there was a problem with the requested skill's response and those might give me clues into the issues.

davidhpayne commented 3 years ago

I think I need a bit more info to hopefully provide some help. Generally, you can always look into the CloudWatch logs for the lambda function to see what exactly is causing it to say that there was a problem with the requested skill's response and those might give me clues into the issues.

Hi Keaton, I'm not familiar with the Cloudwatch logs. Is there something I need to do to view this on the AWS console? I was playing around on the test tab in the alexa developer console to try and find something more helpful to share. Is there something I should be looking for? The logs seem quite generic on there and just show me loads of code when I click on individual events. [7:39:01:055] - Event: System.SynchronizeState [7:39:01:058] - Event: Alexa.SmartMotion.ModeChanged [7:39:01:061] - Event: Settings.SettingsUpdated [7:39:01:066] - Event: System.SynchronizeState [7:39:01:070] - Event: System.SynchronizeState [7:39:08:306] - Event: SpeechRecognizer.Recognize [7:39:09:709] - Directive: SkillDebugger.CaptureDebuggingInfo [7:39:09:768] - Directive: SkillDebugger.CaptureError [7:39:09:913] - Directive: SkillDebugger.CaptureDebuggingInfo [7:39:10:017] - Directive: SpeechRecognizer.RequestProcessingStarted [7:39:10:020] - Directive: SpeechSynthesizer.Speak [7:39:10:022] - Directive: CardRenderer.RenderCard [7:39:10:026] - Directive: SpeechRecognizer.RequestProcessingCompleted [7:39:10:093] - Event: SpeechSynthesizer.SpeechStarted [7:39:10:162] - Directive: SkillDebugger.CaptureError [7:39:10:168] - Directive: SkillDebugger.CaptureDebuggingInfo [7:39:13:903] - Event: SpeechSynthesizer.SpeechFinished

davidhpayne commented 3 years ago

I think the issue was with Alexa media player. I had it set as amazon.com instead of .co.uk Alexa actions then needed me to set it up using the EU Client ID. I included English (UK) and English (US) in the languages just to be certain. It all works now!

barto95100 commented 3 years ago

@davidhpayne how to configure this ? in alexa developper web page (client ID ?)

davidhpayne commented 3 years ago

@barto95100 I used the EU client ID (I'm in the UK). I signed into my Alexa media player using amazon.co.uk though rather than amazon.com

barto95100 commented 3 years ago

@davidhpayne Ok i'm in france, and I use the https://layla.amazon.com/ and don't work I have the this sound (in french language) There was a problem with the requested skill's response

razorface1978 commented 3 years ago

I found my problem it was the url in the lambda py file at the top you can't use quotes and it has to be right up next to the = sign then mine linked and worked so happy

rklueber commented 3 years ago

Please check if you added the files language_strings.jsonand prompt.py at the right place. I find the Howto ambiguous at this particular point. Be sure NOT to put them in the subfolder lambda but in the main directory.

barto95100 commented 3 years ago

@rklueber Ok I move the file in / and not on /lambda... but the same response :(

I test to delete and reconfigure de alexa media player but now I have the "password is wrong" to authentication...

I don'tknow whats happening .... :(

sstratoti commented 3 years ago

Just wanted to add my experience.

  1. My issue was that I failed to create the input_text entity from this page in my HomeAssistant environment.
  2. I tried moving the files @rklueber mentioned under the main directory. This did not work. They worked under the lambda directory (as it appears in this repo). It's also prompts.py, not prompt.py.

HTH someone else!

barto95100 commented 3 years ago

the problem persist :

This is my configuration skiil

Folder file skiil: https://ibb.co/MDKdPKp

lambda_function.py: https://ibb.co/HdpLDjb

language_strings.json: https://ibb.co/HdpLDjbhttps://ibb.co/r5TcfkT

prompts.py: https://ibb.co/HdpLDjbhttps://ibb.co/r5TcfkThttps://ibb.co/DYnNTn1

json: https://ibb.co/7v5vSyr

Account linking: https://ibb.co/bddHVv9

When I test to alexa to say: open custom skiil I have this : https://ibb.co/7JfWrWb

In developper alexa site, test tab: https://ibb.co/qMBxJHS

and the response json format:

{ "version": "1.0", "session": { "new": true, "sessionId": "amzn1.echo-api.session.40b029ba-ca91-43ee-bd52-....2de49", "application": { "applicationId": "amzn1.ask.skill.44a10866-e47d-427a-a01f-9....b7f26a" }, "user": { "userId": "amzn1.ask.account.AFWP7ZTNV5JD....EBBGGAIXJF44A", "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1....aycRq4U3qQ" } }, "context": { "Viewports": [ { "type": "APL", "id": "main", "shape": "RECTANGLE", "dpi": 160, "presentationType": "STANDARD", "canRotate": false, "configuration": { "current": { "mode": "HUB", "video": { "codecs": [ "H_264_42", "H_264_41" ] }, "size": { "type": "DISCRETE", "pixelWidth": 1024, "pixelHeight": 600 } } } } ], "Viewport": { "experiences": [ { "arcMinuteWidth": 246, "arcMinuteHeight": 144, "canRotate": false, "canResize": false } ], "mode": "HUB", "shape": "RECTANGLE", "pixelWidth": 1024, "pixelHeight": 600, "dpi": 160, "currentPixelWidth": 1024, "currentPixelHeight": 600, "touch": [ "SINGLE" ], "video": { "codecs": [ "H_264_42", "H_264_41" ] } }, "Extensions": { "available": { "aplext:backstack:10": {} } }, "System": { "application": { "applicationId": "amzn1.ask.skill.44a10866-e47d-427a-a01f-9738b8b7f26a" }, "user": { "userId": "amzn1.ask.account.AFWP7ZTNV5JD2CVIVK5MH6F3HNG5W6IDTRGXUC2QWWWEBHAYWJNIWMQW4TTTHB62WB7SK5NHLXRDC4BMLDJKPGOPA....", "accessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI4N2MyMjM5ODAzZmQ0NWVmOThlNGQwNTdjYTk3N2U5YyIsImlhdCI6MTYxNTU1MDE1NiwiZXhwIjoxNjE1NTUxO...." }, "device": { "deviceId": "amzn1.ask.device.AGVAS4LV5FGT6THQLEYBTCFSIEWGV66YGYN4PYEIVE4HEUGT7C3FXOICTGROZ4CTL2UO7YVEOZ3R7BI3.....", "supportedInterfaces": {} }, "apiEndpoint": "https://api.eu.amazonalexa.com", "apiAccessToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ.eyJhdWQiOiJodHRwczovL2FwaS5ldS5hbWF6b25hbGV4YS5jb20iLCJpc3MiOiJBbGV4YVNraWxsS2l0Iiwic3ViIjoiYW16bjEuYXNrLnNraWxsLjQ0YTEwODY2LWU0N2QtNDI3YS1hMDFmLTk3MzhiOGI3ZjI2YSIsImV4cCI6MTYxNTU1MTAwMCwiaWF0IjoxNjE1NTUwNzAwLCJuYmYiOjE2MTU1NTA3MDAsInByaXZhdGVDbGFpbXMiOnsiY29udGV4dCI6IkFBQUFBQUFBQVFDaVMyeFRIeWpzellpRERPM2RVWDZCS2dFQUFBQUFBQUJLZERrcXJRQVpQVk00RVYwT1pyVm9OcG5JcUtFMkhvck1TQjZwVkJHY0I1azhqQUR6NlViQnVITXVRSWJ4MGdjK0Q0WHJsSlZoTEg2cno1ZkJQSEFLNGM3VXFnd0h1c1RRMFpBem95MmZHdGpDR3phU2ozMEFIQlZIQlpHT3hTSndZVjBoWmhjMzlnUnRFZkxzMW5ab2x1K3JacmNtVWhTVlpGU0hualJiNW1hekJyeDZCM0U4cjVzOGJnSmhmZl....." } }, "request": { "type": "LaunchRequest", "requestId": "amzn1.echo-api.request.f352a3e0-0af5-4e31-9d56-24590c755804", "timestamp": "2021-03-12T12:05:02Z", "locale": "fr-FR", "shouldLinkResultBeReturned": false } }

sstratoti commented 3 years ago

Did you create the input_text entity from this page in the HomeAssistant environment?

Also, is the url at the top of your lambda_function referencing nabu casa, but the auth URL in you account linking looks a little different? Tough to say, they're both mostly blocked out.

barto95100 commented 3 years ago

Did you create the input_text entity from this page in the HomeAssistant environment?

Also, is the url at the top of your lambda_function referencing nabu casa, but the auth URL in you account linking looks a little different? Tough to say, they're both mostly blocked out.

YEs the url is the same now I test with url nabu casa and direct url DNS and the same

I create the file input_text.yaml in my HA (packages)

https://ibb.co/1ZXn2kv

sstratoti commented 3 years ago

The only other thing I see that's different is your language file. Looks like you're trying to set up French. Maybe try it with US first to make sure that the language isn't the issue? Process of elimination? Nevermind, that probably wont work because...well...you're using FR servers. Just read up above.

barto95100 commented 3 years ago

~ The only other thing I see that's different is your language file. Looks like you're trying to set up French. Maybe try it with US first to make sure that the language isn't the issue? Process of elimination? ~ Nevermind, that probably wont work because...well...you're using FR servers. Just read up above.

I configure in gui DEv Alexa the url for US https://pitangui.amazon.com/ and in my integration HA I use the amazon.com

and the same problem :(

EgoManiac commented 3 years ago

I had this problem.. It turned out that I had created the text_input entity, but I hadn't reloaded HomeAssistant. Bit of a "Doh!" moment for me.

PrathikGopal commented 3 years ago

In my case it was an auth issue, i knew i messed up somewhere so i followed instructions again from first(didnt delete, just modified the files to what is needed in the build) and then this is the important part. Disable skill to unlink account and then link account again in the alexa app. Head over to test and type"open custom actions" - should respond as per the input text data

It works finally, didn't think it could be auth since it was already linked.

Bodge-IT commented 3 years ago

I'm getting this issue too. I have reviewed all the comments above and it's clear this error covers many problems. In my Cloudwatch logs, I get no errors other than a timeout:

Timestamp
Message
No older events at this moment. 
Retry
2021-04-25T15:57:51.295+01:00   START RequestId: 99ffde78-0526-4070-876e-80b6e0d****** Version: 8
2021-04-25T15:57:51.384+01:00   [INFO] 2021-04-25T14:57:51.384Z 99ffde78-0526-4070-876e-80b6e0d****** Locale is en
2021-04-25T15:57:59.304+01:00   END RequestId: 99ffde78-0526-4070-876e-80b6e0d******
2021-04-25T15:57:59.304+01:00   REPORT RequestId: 99ffde78-0526-4070-876e-80b6e0d****** Duration: 8008.41 ms Billed Duration: 8000 ms Memory Size: 512 MB Max Memory Used: 62 MB Init Duration: 458.52 ms
2021-04-25T15:57:59.304+01:00   2021-04-25T14:57:59.303Z 99ffde78-0526-4070-876e-80b6e0d****** Task timed out after 8.01 seconds
Bodge-IT commented 3 years ago

OK, I sorted my issue. A simple one and nothing to do with any of @keatontaylor's work. My issue was caused by a routing issue on my firewall. This was causing intermittent and erratic connection problems on my HA url. My logs above said as much. Note the last line highlighting a time-out. Echo was also giving me a clue as it was taking forever trying to "Open custom actions" before getting the error this issue relates to. Now when I ask echo, the response is almost instant.

DiegoCarrilho commented 3 years ago

My problems was the language on language_strings.json

2021-09-25T16:08:27.066+01:00 | KeyError: 'pt'

Fix: added my language to language_strings.json file.

pushpinder107 commented 2 years ago

In Home Assistant, go to Developer Tools and select entity input_text.alexa_actionable_notification and check its state. It should be {"text": "This is a test of the alexa actions custom skill. Did it work?", "event": "actionable.skill.test"}

diaz66 commented 2 years ago

In Home Assistant, go to Developer Tools and select entity input_text.alexa_actionable_notification and check its state. It should be {"text": "This is a test of the alexa actions custom skill. Did it work?", "event": "actionable.skill.test"}

Yes, I'm stoned, this was my problem. I have not included the input_text.yaml file on configuration.yaml.

! now ok.