-
Notifications
You must be signed in to change notification settings - Fork 577
upgrading @whatwg-node/server:0.10.3+ breaks express compression middleware #3997
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
Comments
I am also running into this. |
Very good report. It would have taken us much longer to figure this one out by ourselves. Thank you for bringing this to our attention. Hope this will get adressed properly. |
This is a bug in But we will still apply a workaround for it. |
@ardatan should there also be an open issue about that on the |
@Urigo There is one actually with a PR but it is there since 2016. |
haha wow that is old! |
Ugh that's only 9yo 😂 Any alternative to compression maybe is the solution? |
Actually there is a plugin for Yoga. import { useContentEncoding } from '@whatwg-node/server';
createYoga({
plugins: [
// ...
useContentEncoding(),
]
}) |
Thank you @ardatan 👏 |
Describe the bug
Last releases where the @whatwh-node/server upgraded to 0.10.3 breaks the compression middleware and hangs requests like introspection and other requests ( but not all )
Your Example Website or App
https://codesandbox.io/p/devbox/agitated-brahmagupta-p63ldq
Steps to Reproduce the Bug or Issue
Steps to reproduce:
As you see the request keeps pending forever and will not receive the schema response in the graphiql
After this the request works fine
The other solution is to remove the compression middleware and it will work fine
Expected behavior
It should respond with the request correctly
Screenshots or Videos
No response
Platform
@graphql-yoga/*
5.13.3Additional context
No response
The text was updated successfully, but these errors were encountered: