You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My current stack is swagger-node with aws-serverless-express to be able to deploy the complete rest-api to one aws lambda function. (reproduce stack from here: ashiina/lambda-local#69 (comment)).
Now as discussed in another Thread by swagger project create hello-world it does automatically use 0.1.0 of swagger-express-mw. So I updated manually to 0.7.0 and added -swagger_params_parser
to my config/default.yaml. Now it does work but the only thing is that I get a 404 for the first lambda invocation and from the 2nd invocation onwards it works as expected. If the function sleeps for long time a cold start is done and the first invocation is again a 404 (error described here: http://stackoverflow.com/questions/42190508/aws-api-gateway-cannot-get-when-function-sleeped-for-long-time).
Do you have any ideas why this does not happen with version 0.1.0 but only with 0.7.0?
(I just realised that it comes from this module because I generated a new minimal test project and there it worked with 0.1.0, but I prefer to use 0.7.0 as there is usage of Sway, which replaces swagger-tools as I understood)
The text was updated successfully, but these errors were encountered:
Mojo90
changed the title
Error with 0.7.0 which does not appear with 0.1.0
404 Error with 0.7.0 which does not appear with 0.1.0
Feb 25, 2017
I can't seem to get it working at all - I always seem to get a 404.
However I was wondering if you are seeing a 404 the first time is it because the SwaggerExpress.create hasn't completed so swaggerExpress.register(app) hasn't run before the .proxy is called?
Could you provide all of the response body / logs from AWS Lambda
My current stack is swagger-node with aws-serverless-express to be able to deploy the complete rest-api to one aws lambda function. (reproduce stack from here: ashiina/lambda-local#69 (comment)).
Now as discussed in another Thread by
swagger project create hello-world
it does automatically use 0.1.0 of swagger-express-mw. So I updated manually to 0.7.0 and added-swagger_params_parser
to my config/default.yaml. Now it does work but the only thing is that I get a 404 for the first lambda invocation and from the 2nd invocation onwards it works as expected. If the function sleeps for long time a cold start is done and the first invocation is again a 404 (error described here: http://stackoverflow.com/questions/42190508/aws-api-gateway-cannot-get-when-function-sleeped-for-long-time).
Do you have any ideas why this does not happen with version 0.1.0 but only with 0.7.0?
(I just realised that it comes from this module because I generated a new minimal test project and there it worked with 0.1.0, but I prefer to use 0.7.0 as there is usage of Sway, which replaces swagger-tools as I understood)
The text was updated successfully, but these errors were encountered: