question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

httpApi timeout over 29 seconds message on functions that don't use the httpApi

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mhotchencommented, Mar 16, 2020

@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.

2reactions
medikoocommented, Mar 16, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found