-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Labels
needs triage
This issue has not been looked into
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there an existing issue for this?
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
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
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?
Other
No response
The text was updated successfully, but these errors were encountered: