Skip to content

Throttler not working as expected #2074

@mukunda-

Description

@mukunda-

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When running the latest throttler (6.x), multiple requests are not blocked as expected.

Minimum reproduction code

https://github.com/mukunda-/nestjs-throttler-test

Steps to reproduce

  1. checkout
  2. npm i
  3. npm run test

Expected behavior

The throttler should not allow more requests until the existing blocks expire fully.

Package version

6.0.0

NestJS version

10.3.10

Node.js version

20.15.1

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions