-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Error: file is missing, Promise has not been resolved (sometimes) #225
Comments
Thanks for the report, although I'm not really sure what could be wrong. Could you please explain in as much detail as you can what happens in the times the upload doesn't work? You say the Also, do you think this upstream issue with |
Hey, sorry about the delay. It seems doing About your questions: I'm integrating a back-end which is using graphql-upload and don't have all the info, but it seemed like the promise didn't resolve (again, on the browsers which I mentioned, and not everytime - testing 10 times would guarantee I got the error at least once though). I don't have any idea about the busboy issue, sorry. Please let me know if I can provide more info, or if this is just intended behavior. |
This is confusing to read, because you should not be accessing a const { filename, mimetype, createReadStream } = await image;
const stream = createReadStream(); // Promisify this, and await it to complete. If you run Perhaps you are using an old version (perhaps even multiple version are installed), and maybe also using the API incorrectly in resolvers. |
Hello, I'm one of the back-end developper that worked on the topic. |
Apollo not updating their dependencies for years at time is giving everyone huge headaches! Several major Node.js versions have come out while Apollo Server has been stuck at v2 :( Please double check you have fully disabled and replaced the outdated Apollo Server You can see a working example of Apollo Server and Koa here: https://github.com/jaydenseric/apollo-upload-examples/tree/master/api Best of luck with the investigation, let us know how it goes :) |
Hello, just to report I have the same problem as @adrienharnay and @shrodingers, meaning i get the same Upload object of exact shape as @shrodingers suggested. graphql-upload 12.0.0, node 14.15.4, apollo-server-express 2.25.0. await file doesn't work as well. another edit (dev dependencies): "apollo-server-express": "^2.25.0", |
as @adrienharnay described, same issue for me on node 16, |
Hello,
Since upgrading from 8.0.2 to 11.0.0 (node 14), when uploading a file from iOS (tested on Safari, Chrome) or MacOS (tested on Safari, Chrome DOESN'T HAVE the bug), the file is sometimes missing as the Promise has not been resolved with its content.
I have now tested around 100 times on Chrome MacOS (100 worked), and around 100 times on Safari MacOS, Chrome iOS and Safari iOS (around 40 worked). When it did not work, the file is missing and only the
promise
andresolve
keys are here.I would gladly help you fix it if I can, would you have any idea where it may come from?
The text was updated successfully, but these errors were encountered: