-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
addContentTypeParser
doesn't work well after await register
#5401
Comments
await register
addContentTypeParser
doesn't work well after await register
So you claim there is a race condition? |
I don't think it a race condition issue because it can work by removing |
Not sure if is it mentioned in document. My suggestion is that only add |
I believe similar fix can be used like |
Albeit surprisingly, this is expected behavior. This should be clarified in our docs. |
I'd like to take on this documentation update issue |
Prerequisites
Fastify version
v4.26.2
Plugin version
No response
Node.js version
20
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04
Description
addContentTypeParser
doesn't work as expected when previous statement isregister
withawait
.Steps to Reproduce
ex:
Expected Behavior
the CSV parser should work as expected.
The text was updated successfully, but these errors were encountered: