Skip to content

AwsAlexaEvent parsing problem #21

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

Open
shinayser opened this issue Dec 4, 2020 · 0 comments
Open

AwsAlexaEvent parsing problem #21

shinayser opened this issue Dec 4, 2020 · 0 comments

Comments

@shinayser
Copy link

shinayser commented Dec 4, 2020

Check this for the parsing of the AwsAlexaEvent

image

It is expecting and header and a payload object.

The problem is, when we are testing the lambdas on aws, this is the json provided by the lambda testing tool:

{
  "version": "1.0",
  "session": {
    "new": true,
    "sessionId": "amzn1.echo-api.session.123456789012",
    "application": {
      "applicationId": "amzn1.ask.skill.987654321"
    },
    "user": {
      "userId": "amzn1.ask.account.testUser"
    },
    "attributes": {}
  },
  "context": {
    "AudioPlayer": {
      "playerActivity": "IDLE"
    },
    "System": {
      "application": {
        "applicationId": "amzn1.ask.skill.987654321"
      },
      "user": {
        "userId": "amzn1.ask.account.testUser"
      },
      "device": {
        "supportedInterfaces": {
          "AudioPlayer": {}
        }
      }
    }
  },
  "request": {
    "type": "LaunchRequest",
    "requestId": "amzn1.echo-api.request.1234",
    "timestamp": "2016-10-27T18:21:44Z",
    "locale": "en-US"
  }
}

As you can see there is no header or payload objects on this JSON, with ends by returning an empty AwsAlexaEvent.

@shinayser shinayser changed the title AwsAlexaEvent is problem on parsing AwsAlexaEvent parsing problem Dec 4, 2020
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