Apollo must wait to respond until request completes
See original GitHub issueIt appears that all the apollo-server-
packages suffer from a bug when using graphql-upload
. It is essential to wait for an entire HTTP request to be consumed before responding, or you risk causing very hard-to-diagnose bugs, including locking a browser out of subsequent requests to the server.
The middleware that comes with graphql-upload
does this, but was being bypassed in graphql-upload-express
, which I fixed here. However, I noticed that the upload middleware bundled with Apollo fails to wait, and will experience these bugs even with that fix.
Please see this issue for context and details (specifically this comment) the accompanying demonstration repo put together with heroic effort by @juona.
This middleware in apollo-server-express might be able to borrow from this one in graphql-upload/express.
This middleware in apollo-server-koa might take from this in graphql-upload/koa.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:9 (5 by maintainers)
Top GitHub Comments
Hello, noticed there are no updates for almost a year - is this is hard to use compatibility with graphql-upload/koa or graphql-upload/express? Want to up this issue, it’s pretty critical one.
@OwenCalvin we finally decided to upload to AWS S3 directly. It reduces the server load and we now simply generate pre-signed URLs.