Skip to content
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

Cannot Override Timeout API Calls #5922

Open
vdo9 opened this issue Dec 4, 2024 · 0 comments
Open

Cannot Override Timeout API Calls #5922

vdo9 opened this issue Dec 4, 2024 · 0 comments
Labels
type: bug code to address defects in shipped code

Comments

@vdo9
Copy link

vdo9 commented Dec 4, 2024

Describe the bug

I am getting an error where whenever we make an API call, there is a timeout error that cannot be overrided:

  errorMessage: 'Task timed out after 30.00 seconds',
  errorType: 'TimeoutError',
  stackTrace: [
    'new TimeoutError (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/lambda-local/build/lib/utils.js:119:28)',
    'Context.<anonymous> (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/lambda-local/build/lib/context.js:113:19)',
    'listOnTimeout (node:internal/timers:614:17)',
    'processTimers (node:internal/timers:549:7)'
  ]
}

### Steps to reproduce

-

### CLI command and flags

-

### Configuration

[build]
command = "npm run build"
publish = "build/client"

[dev]
command = "npm run dev"
framework = "vite"

CLI output

{
  errorMessage: 'Task timed out after 30.00 seconds',
  errorType: 'TimeoutError',
  stackTrace: [
    'new TimeoutError (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/lambda-local/build/lib/utils.js:119:28)',
    'Context.<anonymous> (/opt/homebrew/lib/node_modules/netlify-cli/node_modules/lambda-local/build/lib/context.js:113:19)',
    'listOnTimeout (node:internal/timers:614:17)',
    'processTimers (node:internal/timers:549:7)'
  ]
}

### Environment

When I have my serverless API calls in an action function, it times out. 
@vdo9 vdo9 added the type: bug code to address defects in shipped code label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant