Skip to content

Error while receiving the response from lambda #1

@akshay4malik

Description

@akshay4malik

Hi, I used your code template, But I am getting the following error. This error is coming when lambda is sending response to lex.

``Invalid Lambda Response: Received invalid response from Lambda: Can not construct instance of AutoValue_Intent$Builder: no String-argument constructor/factory method to deserialize from String value ('Authorizations') at [Source: {"sessionState": {"sessionAttributes": {}, "dialogAction": {"type": "Close"}, "intent": "Authorizations"}, "messages": [{"contentType": "PlainText", "content": "Use\u00a0MyApps plus\u00a0(F5 VPN\u00a0is not needed.\u00a0VPN capacity is limited; therefore, it needs to be available for those who must access applications that are inaccessible through MyApps). After installation of MyApps plus, please restart PC before logging in to SteamERP. Log on is possible only through OneSteam ERP portal- https://onesteam.power.ge.com/irj/portal. Delete all cookies, histories and caches from browsers or try to access in different browsers. If your access was working from GE office, but is not working remotely, please contact your local IT support.\u00a0"}], "sessionId": "028857548531409", "requestAttributes": null}; line: 1, column: 89]

Here is the response I am creating from lambda:

ans =  {
        "sessionState": {
            "sessionAttributes": session_attributes,
            "dialogAction": {
                "type": "Close"
            },
            "intent": str(intent_request['sessionState']['intent']['name'])
            },
        "messages": [message],
        "sessionId": str(intent_request['sessionId']),
        "requestAttributes": "Ignored"
    }

I am not sure what is happening. I have checked double quotes and everything else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions