You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now i'm starting to think that it not even goes to there, but probably aborted or error event is fired.
Yes, i should probably add one try catch block there so we can debug more. Btw, @maximedupre you can try locally and see what is the real error. I'm sure that one of above events are fired.
Activity
tunnckoCore commentedon Oct 27, 2017
Yup. It seems like problem in
node-formidable. And if this helps to anyone, here's explanation.In the given issue, there is really well-known and all loved "cannot read of undefined"
Yep, but it isn't a problem in my code, because in that line the
resultvariable must be an object withfieldsandfilesproperties which comes directly when "end" event of Formidable is fired here.Now i'm starting to think that it not even goes to there, but probably
abortedorerrorevent is fired.Yes, i should probably add one
try catchblock there so we can debug more. Btw, @maximedupre you can try locally and see what is the real error. I'm sure that one of above events are fired.maximedupre commentedon Oct 27, 2017
The
onerrorevent handle ofkoa-better-bodyis being fired with the above error.tunnckoCore commentedon Oct 27, 2017
Ssstrange. I seriously think that the problem is here, but i'll check what i can do in my lib as soon as i get a bit more time.
GrosSacASac commentedon Dec 27, 2020
Is it an issue inside koa-better-body or formidable ?
tunnckoCore commentedon Jan 7, 2021
It cannot be at
koa-better-bodyfor sure. I don't do anything specific and spectacular there, just calling Formidable (.parse without callback).