serverless / serverless/serverless

sls invoke times out before lambda does (2 minutes but lambda is 15)

Open
#6,291 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug cat/lambda
Dominant language
JavaScript
Stars
46.9k
Forks
5.7k
Avg merge
10h 7m
Merged PRs (30d)
57

Description

This is a Bug Report

Description

  • What went wrong?
    sls invoke times out after 2 minutes and retries

  • What did you expect should have happened?
    invoke waits for the actual lambda invoke to timeout which can be as long as 15 min

  • What was the config you used?
    any

  • What stacktrace or error message from your provider did you see?
    none

Similar or dependent issues:
https://github.com/serverless/serverless/issues/5374

Additional Data

  • Serverless Framework Version you're using:
    1.41.x
  • Operating System:
    any

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the implementation of the sls invoke command and reproduce the two-minute timeout with a Lambda that runs longer. Trace the timeout and retry handling, then verify that invocation waits for the provider timeout rather than retrying after two minutes.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.