-
Notifications
You must be signed in to change notification settings - Fork 101
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
Lambda together with API Gateway #69
Comments
Hi! So I believe you are asking for some request details to be set inside As far as I have researched:
I'd appreciate it if you can show me where you found the documentation. |
To be honest I searched for a while now and it was not from the docs it was from tooltips in API Gateway: So I think you already pointed to the correct URL to this Section: I tried it with an event based on above url but I get a 500 error with |
What is stopping you from adding the full content of the API gateway request to your sample input data eg:
|
@mitchell-johnson As I mentioned, I tried with such an event but got a 500-Error and the comment: |
@Mojo90 I just tested this myself, and it turns out that as the Document states, all the request information is stored in the The text on the console (the screenshot you pasted) turns out to be wrong... A silly mistake on AWS's part. http://willhamill.com/2016/12/12/aws-api-gateway-lambda-proxy-request-and-response-objects |
This sounds like a completely different issue. If you want help with this you should post your actual Lambda code. |
I am currently using swagger-node with aws-serverless-express. If you don't have used swagger before install it with:
create swagger-node project (use express):
update app.js:
add lambda.js:
add test-event.js:
now run:
output:
so does not work for me. At least a 404 should occur, as a 404 occurs when executing lambda function in aws console and no event data with proxy information is setted. Thx for your time! |
I use a stack where API Gateway invokes Lambda Function via
aws_proxy
and this works great. The docs of aws saysRequests will be proxied to Lambda with request details available in the "context" of your handler function.
So I am wondering if I can invoke it the same way local with this plugin? I did a few tests and generally the invocation works good but didn't get it to run as I needed to.
e.g. apigateway gets a
get
request to pathhello
and this invokes the lambda function with a proxy and you get a corresponding answer (normal rest api).The text was updated successfully, but these errors were encountered: