Skip to content

HAMUR_W2050: A route rule's timeout is at or above the platform's function duration

A route rule's timeout is at or above the platform's function duration. Warning HAMUR_W2050 belongs to hamur, server (2001 – 2999).

Message

text
HAMUR_W2050 Route rule "<pattern>" timeout <rule> is at or above the <platform> function's <duration> s duration; the platform ends the function first

Cause

A route rule's timeout is at or above the duration of the platform's function. The platform ends the function first.

Fix

Use a shorter timeout.

ts
import { defineConfig } from "hamur"

export default defineConfig({
  framework: "react",
  routeRules: {
    "/upload/**": { bodyLimit: 4_000_000, timeout: 20 },
  },
})