httpApi timeout over 29 seconds message on functions that don't use the httpApi
See original GitHub issueBug Report
Description
I have a function definition like this:
functions:
website:
handler: public/index.php
timeout: 15 # seconds (max would be 29 though api gateway limitation)
layers:
- ${bref:layer.php-73-fpm}
events:
- httpApi: '*'
console:
handler: bin/console.php
timeout: 120 # in seconds
layers:
- ${bref:layer.php-73}
- ${bref:layer.console} # The "console" layer
This creates a warning
Serverless Warning --------------------------------------
Function timeout setting (120) is greater than maximum allowed timeout for HTTP API endpoint (29s). This may introduce situation where endpoint times out for succesful lambda invocation.
However, the function with 120 seconds timeout is not registered for the httpApi. This was introduced in #7420
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Troubleshoot API Gateway HTTP 504 timeout errors - AWS
Note: API Gateway REST API's default maximum integration timeout is 29 seconds. For HTTP API the timeout can be configured for up to...
Read more >Amazon API gateway timeout - Stack Overflow
Show activity on this post. As of Dec/2017, the maximum value is still 29 seconds, but should be able to customize the timeout...
Read more >How to overcome API Gateway timeouts using WebSocket
However, the API Gateway in front of it has a more aggressive integration timeout limit of maximum 29 seconds.
Read more >Lambda continues to run after ApiGateway request timed out
The Lambda sleeps for 40 seconds, then logs. We observe the following: 29 seconds after issuing the request, we receive {"message": "Endpoint request...
Read more >AWS Lambda Timeout Best Practices - Lumigo
Solution: For APIs, it's always better to define your own timeouts at the function level, which should be very short – around 3-6...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@medikoo amazing; thanks for the fast response!
I work at a company that has helped over 10k people quit smoking. We rely heavily on serverless. I, and the whole company, really appreciate your work.
@Nemo64 thanks for reporting, will be fixed with #7467
@mhotchen I’ve also ensured that function name is provided in eventual warning.
As you noted it’s an only a log pollution issue, it doesn’t affect functionality.