---
title: RELKIT_RATE_LIMIT_INVALID
description: "Rate limit settings are invalid."
pagination: false
search:
  keywords: [RELKIT_RATE_LIMIT_INVALID]
sidebar:
  icon: triangle-alert
---

{/* Generated by apps/docs/scripts/generate.ts. Do not edit. */}

**Rate limit settings are invalid.**

## What happened

A route's `rateLimit` needs a positive `limit`, a positive `windowMs` and a supported `key`, and one of these is missing or wrong.

## What to do

Set `limit` and `windowMs` to positive numbers and use a supported `key.kind`.

Reported by `@relkit/cli`, `relkit/diagnostics`.

See [all error codes](/docs/errors).
