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

aws: handling if used via new API Gateway v2 (i.e. HTTP-API) with in combination with a stage #143

Closed
wants to merge 1 commit into from

Conversation

adrai
Copy link
Contributor

@adrai adrai commented Mar 5, 2020

Seems like the new API Gateway v2 (i.e. when using HTTP-API) does send a different event payload when used with a dedicated api stage.

The "old" API Gateway sends it like this:

{
  httpMethod: 'GET',
  path: '/test',
  headers: {
    'X-My-Header': 'wuuusaaa'
  },
  requestContext: {
  }
}

The "new" API Gateway sends it like this:

{
  httpMethod: 'GET',
  path: '/dev/test',
  headers: {
    'X-My-Header': 'wuuusaaa'
  },
  requestContext: {
    resourcePath: '/test',
    stage: 'dev'
  }
}

compare the path value

@adrai adrai closed this Mar 12, 2020
@dougmoscrop
Copy link
Owner

Hey! I will support this, I am just super busy

@dougmoscrop dougmoscrop self-assigned this Mar 12, 2020
@adrai
Copy link
Contributor Author

adrai commented Mar 13, 2020 via email

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

Successfully merging this pull request may close these issues.

2 participants