# FUNCTION_INVOCATION_TIMEOUT

**Short answer:** The function did not complete within its execution limit. A slow upstream, unbounded work, a database connection problem or a missing response path can produce the timeout.

## Fix it without weakening the boundary

1. Find the specific invocation and the last completed operation in private logs.
2. Add bounded timeouts to external requests and make failure explicit.
3. Review the function's current platform limits and execution configuration.
4. Keep expensive work bounded and verify the user gets a recoverable state rather than a false success.

```text
const response = await fetch(upstreamUrl, {
  signal: AbortSignal.timeout(8000),
});
```

> A timeout does not prove an upstream payment failed; reconcile before retrying an irreversible operation.

## Verify the result

Repeat the original operation in the intended environment with a controlled account or synthetic input. Verify the legitimate path still succeeds and an unauthorized caller does not gain new access. Keep unresolved provider, routing or authentication questions explicit rather than converting a generic response into a pass.

See [the related practical guide](/guides/is-my-v0-app-secure) for the surrounding application boundary and [scan methodology](/methodology) for what an outside check can establish.

## Questions

### Does this error mean my app was hacked?

The function did not complete within its execution limit. A slow upstream, unbounded work, a database connection problem or a missing response path can produce the timeout. The message alone does not establish compromise.

### What should I avoid while fixing it?

A timeout does not prove an upstream payment failed; reconcile before retrying an irreversible operation.

### Can a public scan diagnose the whole problem?

No. A public check can inspect supported deployed signals but cannot read your private provider configuration, sign in as your users or exercise payment fulfillment. Follow the provider-specific procedure above.

> **Scan box**
>
> Check your deployed public surface. Private provider configuration and authenticated workflows need separate review.

[All errors](/errors) · [Scan your app free](/)

## Sources

- [Official Deployment documentation](https://vercel.com/docs/errors/FUNCTION_INVOCATION_TIMEOUT)

*Written by Brennan Zambo. Published and updated November 26, 2026.*
