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

Apollo Server hangs during upload file with graphql-upload #7280

Closed
NicoSan20 opened this issue Jan 2, 2023 · 1 comment
Closed

Apollo Server hangs during upload file with graphql-upload #7280

NicoSan20 opened this issue Jan 2, 2023 · 1 comment

Comments

@NicoSan20
Copy link

Issue Description

Hello, I'm writing to you because I'm having issue when I'm using graphql-upload. Let me explain :

I have successfully implemented graphql-upload with the following documentation Enabling file uploads in Apollo Server

The issue occurs when I upload a file or multiple files. During the upload, my apollo-server is no longer accessible and the frontend no longer works.

What is strange is that the sending is done correctly (without error) but you have to wait between 3 to 6 minutes for a simple 3MB image (and during this time, my application is no longer available).

I have already opened an issue request at graphql-upload, which you can view here : jaydenseric/graphql-upload#352 But for the moment we can't solve this issue, that's why I come to you :)

For information, the issue occurs with version 3 and 4 of apollo-server.

Thank you in advance for your help. (sorry also for my english, it's not my mother tongue)

Link to Reproduction

Reproduction Steps

You can simply reproduce the problem with the maintainer example of graphql-upload :

  1. Create a VM
  2. Simply install Debian or Ubuntu
  3. Install NodeJS (https://github.com/nodesource/distributions/blob/master/README.md#deb)
  4. Download API and app example provided by @jaydenseric (https://github.com/jaydenseric/apollo-upload-examples)
  5. Then go to 'api' directory and run the command npm install, then npm run dev. Do also the same under the 'app' directory.
  6. Then try to upload several images of 3 or 5 MB (https://www.sample-videos.com/download-sample-png-image.php)
@trevor-scheer
Copy link
Member

Uploads are not a thing that we still support directly. Can you demonstrate that this issue is an Apollo Server problem and not a graphql-upload problem? Perhaps more generally Apollo Server hangs with large payloads? If you can show that the issue is specific to Apollo Server then we might be able to help.

I'm happy to reopen this issue if you provide a reproduction that provably demonstrates this is specific to Apollo Server.

@trevor-scheer trevor-scheer closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants