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

requestPath property missing in lambda integration events #808

Closed
jormaechea opened this issue Sep 11, 2019 · 4 comments
Closed

requestPath property missing in lambda integration events #808

jormaechea opened this issue Sep 11, 2019 · 4 comments

Comments

@jormaechea
Copy link
Contributor

This property was added in serverless/serverless#6364 and it's still missing in serverless offline events.

How can we verify it:

serverless.yml

service: SampleService
provider:
  name: aws
  runtime: nodejs8.10
functions:
  HelloWorld:
    handler: index.handler
    events:
      - http:
          integration: lambda
          path: hello-world
          method: get

index.js

module.exports.handler = async ({ requestPath }) => {
	return {
		body: JSON.stringify({ requestPath })
	};
};

You should see the new property (requestPath) in the response body, with the API Path as value, in this case /hello-world

@dnalborczyk
Copy link
Collaborator

thank you @jormaechea !

partially duplicate of: #780

fixed with: #776

TODO: changes need to be pulled into master.

@dnalborczyk
Copy link
Collaborator

fixed with: #776

@jormaechea
Copy link
Contributor Author

Sorry, didn't see the dupicated issue 🙏

@dnalborczyk
Copy link
Collaborator

no worries @jormaechea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants