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

Nest + Fastify + AsyncLocalStorage middlewares #8843

Closed
4 of 15 tasks
ghost opened this issue Dec 22, 2021 · 2 comments
Closed
4 of 15 tasks

Nest + Fastify + AsyncLocalStorage middlewares #8843

ghost opened this issue Dec 22, 2021 · 2 comments
Labels
needs triage This issue has not been looked into

Comments

@ghost
Copy link

ghost commented Dec 22, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

The middlewares are not working if fastify (adapter) is installed. When it is removed the middleware starts to work (express adapter), for both GET and POST requests.

Minimum reproduction code

https:/B4nan/nest-fastify-als

Steps to reproduce

yarn
yarn start
curl localhost:3000
curl -X POST localhost:3000

Expected behavior

To return stored value not undefined.

Package

  • I don't know. Or some 3rd-party package
  • @nestjs/common
  • @nestjs/core
  • @nestjs/microservices
  • @nestjs/platform-express
  • @nestjs/platform-fastify
  • @nestjs/platform-socket.io
  • @nestjs/platform-ws
  • @nestjs/testing
  • @nestjs/websockets
  • Other (see below)

Other package

No response

NestJS version

8.2.4

Packages versions

platform-express version : 8.2.4
platform-fastify version : 8.2.4
schematics version : 8.0.5
testing version : 8.2.4
common version : 8.2.4
core version : 8.2.4
cli version : 8.1.6

Node.js version

14/16/17

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@ghost ghost added the needs triage This issue has not been looked into label Dec 22, 2021
@jmcdo29
Copy link
Member

jmcdo29 commented Dec 22, 2021

I think this is directly related to #8837

@kamilmysliwiec
Copy link
Member

#8837

@nestjs nestjs locked and limited conversation to collaborators Dec 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage This issue has not been looked into
Projects
None yet
Development

No branches or pull requests

2 participants