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

Is used express/fastify specific code but not nest js #2206

Open
2 of 4 tasks
Makkalay opened this issue Dec 28, 2024 · 0 comments
Open
2 of 4 tasks

Is used express/fastify specific code but not nest js #2206

Makkalay opened this issue Dec 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Makkalay
Copy link

Makkalay commented Dec 28, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

res.header(`Retry-After${getThrottlerSuffix(throttler.name)}`, timeToBlockExpire);

res.header is not a function. (In 'res.header(${this.headerPrefix}-Limit${getThrottlerSuffix(throttler.name)}, limit)', 'res.header' is undefined)
TypeError: res.header is not a function.

        res.header(`${this.headerPrefix}-Limit${getThrottlerSuffix(throttler.name)}`, limit);

Minimum reproduction code

res.header(`Retry-After${getThrottlerSuffix(throttler.name)}`, timeToBlockExpire);

Steps to reproduce

Expected behavior

use adapter's methods this.httpAdapder.setHeader(***), that code limit use only official adapters

Package version

latest

NestJS version

latest

Node.js version

20

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@Makkalay Makkalay added the bug Something isn't working label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant