That's expected that my 2 endpoints should work the same, but I get different outputs:
In case of POST /graphql, console outputs the following: 1, closed, 2, 3
Whereas in case of POST /, console outputs the following: 1, 2, 3, closed
reply.request.raw.on('close') is being triggered before the request is really finished with default mercurius setup
Curious if it's a known issue, expected behaviour, or perhaps you know what can be the issue? I attached the minimal reproducible repo
Didn't have a lot of time to debug it yet so let me know if you have any thoughts
Hey 👋 Looks like I found a bug:
minimal reproducible example
I have default
fastify + mercurius
setup from the quick start docs:This, by default, creates
POST /graphql
endpoint which handles the graphql requests.Additionally, I've added another endpoint that handles graphql:
I have only one resolver that has this code:
That's expected that my 2 endpoints should work the same, but I get different outputs:
POST /graphql
, console outputs the following:1, closed, 2, 3
POST /
, console outputs the following:1, 2, 3, closed
reply.request.raw.on('close') is being triggered before the request is really finished with default mercurius setup
Curious if it's a known issue, expected behaviour, or perhaps you know what can be the issue? I attached the minimal reproducible repo Didn't have a lot of time to debug it yet so let me know if you have any thoughts