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 #41278

Closed
ghost opened this issue Dec 22, 2021 · 2 comments
Closed

Nest + Fastify + AsyncLocalStorage middlewares #41278

ghost opened this issue Dec 22, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 22, 2021

Version

16/17/18

Platform

5.11.0-43-generic #47~20.04.2-Ubuntu x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

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

How often does it reproduce? Is there a required condition?

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.

What is the expected behavior?

To return stored value from AsyncLocalStorage.

What do you see instead?

undefined

Additional information

No response

@Trott
Copy link
Member

Trott commented Dec 22, 2021

Hi. This seems unlikely to be a bug in Node.js core and might be more appropriate to discuss in one of these venues:

@ghost
Copy link
Author

ghost commented Dec 22, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant