Comments (18)
Thanks for merging @amit777. Please update the npm package :-)
from async-busboy.
still hang on node 16
from async-busboy.
1.1.0 published to NPM. Apologies to everyone for the delay
from async-busboy.
Hi @FredericHeem and @alqu would you mind testing my fork with the fixes here: https://github.com/amit777/async-busboy
It seems to work for me.
from async-busboy.
Same problem. Had to use @koa/multer =(
from async-busboy.
Same here. Any solution in sight?
from async-busboy.
Also noticed upload issue on node14. Works on node 12. Using v1.0.1
from async-busboy.
I've been debugging this. While I thought the code would always hang, I did actally see it succesfully work twice while I was putting console logs in.. I thought maybe the console.log was somehow causing it to start working, but it doesn't seem to be the case.. so it seems like it will fail most of the time but may occasionally work.
from async-busboy.
ok.. I think i've found the culprit. busboy's "close" event seems to be firing before "finished". When this happens, the finished event gets unsubscribed to, and the Promise is not resolved. I'm not sure if some assumption changed in Node14 streams about the order of events.
busboy.on('close', cleanup);
from async-busboy.
@amit777 yep, thats the culprit. I too found that
Also, don't you think
busboy.on('close', cleanup)
is required for some other case. So maybe removing that will solve this case but break anything else?
Also, I was more interested in finding why is close called early. Maybe something changed in node 14
from async-busboy.
in my pull request I did remove the .on('close') since it only calls cleanup(). Cleanup looks like it would get call anyway later by another event, so I think it may not be impactful, but I'm not sure.
Out of curious, what tool did you use that generated that output from your screenshot?
from async-busboy.
Hi @FredericHeem and @alqu would you mind testing my fork with the fixes here: https://github.com/amit777/async-busboy
It seems to work for me.
I tested it locally and on a production server - it works fine, no problems so far.
from async-busboy.
@amit777 thanks a lot, confirmation from my side your fork is working fine. Waiting for the package to be published.
from async-busboy.
have the same problem, waiting as well...
from async-busboy.
Guess we can consider this repo dead.
from async-busboy.
@m4nuC would it be possible to publish the updated package on npm? It looks like a lot of testers confirmed it works.
from async-busboy.
@amit777 on it. Sorry for the delay
from async-busboy.
Do you set autoDestroy to false?
from async-busboy.
Related Issues (20)
- Is there a way to expose uploading progress? HOT 3
- How to "drain the request stream" HOT 1
- Throw on('limit') ? HOT 4
- Documentation needs an update HOT 1
- TypeError: request.on is not a function HOT 3
- filePromises not passing to custom onFile HOT 3
- Can't read the file content HOT 1
- how to writestream to desired path in local ? HOT 2
- using asyncBusboy in two middleware HOT 1
- Cleanup function will not remove custom onFile function, memory leak HOT 4
- formData.files as on object
- How can you do onFile with async? HOT 3
- Processing unindexed array fields cause a whole process to crash
- Breaks on Node 16 HOT 8
- Replace unsupported busboy version with fastify fork
- Update to busboy 1.3 HOT 1
- Sometime asyncBusboy never responding HOT 2
- 504 Gateway timeout for specific files (.csv / .xlsx) HOT 3
- Publish a new version to npm HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async-busboy.