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

Error while receiving the response from lambda #1

Open
akshay4malik opened this issue Jun 22, 2022 · 0 comments
Open

Error while receiving the response from lambda #1

akshay4malik opened this issue Jun 22, 2022 · 0 comments

Comments

@akshay4malik
Copy link

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.

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

1 participant