keatontaylor / alexa-actions

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

[Bug]: There was a problem with the requested skill's response #235

Closed AngeloAna closed 6 months ago

AngeloAna commented 6 months ago

Did you check our FAQ and Issue/PR for similar issues?

Contact Details

angeloaa@yahoo.com

What happened?

I was able to successfully build and deploy the skill per the instructions. When I try to test it I get the error in the title. I don't see any log errors. Information to help troubleshoot below. Let me know if any other info is needed.

HA configuration.yaml file entry:

input_text:
  alexa_actionable_notification:
    name: Alexa Actionable Notification Holder
    max: 255
    initial: '{"text": "This is a test of the alexa actionable notifications skill. Did it work?", "event": "actionable.skill.test", "suppress_confirmation": "false"}'

Here is the redacted beginning of the lambda_function.py file:

VERSION 0.9.1

# UPDATE THESE VARIABLES WITH YOUR CONFIG
HOME_ASSISTANT_URL = "https://42fiwaed... REDACTED.ui.nabu.casa"  # REPLACE WITH THE URL FOR YOUR HOME ASSISTANT
VERIFY_SSL = False  # SET TO FALSE IF YOU DO NOT HAVE VALID CERTS
TOKEN = "eyJhbGciOiJIUzI... REDACTED"  # ADD YOUR LONG LIVED TOKEN IF NEEDED OTHERWISE LEAVE BLANK
DEBUG = True  # SET TO TRUE IF YOU WANT TO SEE MORE DETAILS IN THE LOGS
# SET TO FALSE IF YOU DO NOT WANT TO SHARE CRASH REPORTS AND SKILL PERFORMANCE DATA WITH US.
# We really appreciate if you keep this True as we use this to help us identify bugs and fix them.
# Check sentry.io to see what information is collected
ALLOW_ANONYMOUS_DATA_COLLECTION = False 

""" NO NEED TO EDIT ANYTHING UNDER THE LINE """

Here is the redacted JSON Input 1 file that shows on testing page:


{
    "version": "1.0",
    "session": {
        "new": true,
        "sessionId": "amzn1.echo-api.session.3afd6f7c-c495-4b83-a559-... REDACTED",
        "application": {
            "applicationId": "amzn1.ask.skill.ffcb3ad0-90bb-47a5-aedb-... REDACTED"
        },
        "attributes": {},
        "user": {
            "userId": "amzn1.ask.account.AMAQQX... REDACTED"
        },
        "affiliatedResources": []
    },
    "context": {
        "Viewports": [
            {
                "type": "APL",
                "id": "main",
                "shape": "RECTANGLE",
                "dpi": 213,
                "presentationType": "STANDARD",
                "canRotate": false,
                "configuration": {
                    "current": {
                        "mode": "HUB",
                        "video": {
                            "codecs": [
                                "H_264_42",
                                "H_264_41"
                            ]
                        },
                        "size": {
                            "type": "DISCRETE",
                            "pixelWidth": 1280,
                            "pixelHeight": 800
                        }
                    }
                }
            }
        ],
        "Viewport": {
            "experiences": [
                {
                    "arcMinuteWidth": 346,
                    "arcMinuteHeight": 216,
                    "canRotate": false,
                    "canResize": false
                }
            ],
            "mode": "HUB",
            "shape": "RECTANGLE",
            "pixelWidth": 1280,
            "pixelHeight": 800,
            "dpi": 213,
            "currentPixelWidth": 1280,
            "currentPixelHeight": 800,
            "touch": [
                "SINGLE"
            ],
            "video": {
                "codecs": [
                    "H_264_42",
                    "H_264_41"
                ]
            }
        },
        "Extensions": {
            "available": {
                "aplext:backstack:10": {}
            }
        },
        "Advertising": {
            "advertisingId": "00000000-0000-0000-0000-000000000000",
            "limitAdTracking": true
        },
        "System": {
            "application": {
                "applicationId": "amzn1.ask.skill.ffcb3ad0-90bb-47a5-aedb-f521862ace6e"
            },
            "user": {
                "userId": "amzn1.ask.account.AMAQQXIQQ... REDACTED"
            },
            "device": {
                "deviceId": "amzn1.ask.device.AMAW6AJG2XA... REDACTED",
                "supportedInterfaces": {}
            },
            "apiEndpoint": "https://api.amazonalexa.com",
            "apiAccessToken": "eyJ0eXAiO... REDACTED"
        }
    },
    "request": {
        "type": "LaunchRequest",
        "requestId": "amzn1.echo-api.request.4ba79799-aa1a-41ed-ba5d-5c5e38089748",
        "locale": "en-US",
        "timestamp": "2024-02-20T16:25:25Z",
        "shouldLinkResultBeReturned": false
    }
}

Version

0.9.1

What Alexa device are you using?

Echo, Echo Show

What other Alexa device are you using?

No response

Relevant log output

Could not find any log information.
DEADSEC-SECURITY commented 6 months ago

Dude this was completely unreadable. Please format your content next time or I will close the issue. I already formatted this time so no action just a warning.

DEADSEC-SECURITY commented 6 months ago

I need logs from cloudwatch, this json doesn't really help. Please past here your logs for the skill

AngeloAna commented 6 months ago

Sorry about the formatting. Rookie mistake. I am not familiar with AWS enough to create logs. I signed up for an AWS Management Console account and went into CloutWatch but do not see any log information. I assume this is because my Amazon Developer Account is not linked to the AWS Management Console account and I can't figure out how to do it.

DEADSEC-SECURITY commented 6 months ago

image

Use this button on your alexa dev console

AngeloAna commented 6 months ago

Attached. log.txt

vfranchi commented 6 months ago

I'm having the same issue. isodate could not be imported. I've created a skill from scratch because the Import process failed on me. Not sure why.

DEADSEC-SECURITY commented 6 months ago

Duplicate of https://github.com/keatontaylor/alexa-actions/issues/233