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
First of all huge thanks for such a great tool, our UI development has been facilitated by it for years now. UI frameworks come and go but yaxy keeps working. We are planning to check webpack dev server in future but as of now we are good with what yaxy provides.
Not sure if project is maintained nor if this is worth fixing but seems like there is some limit of POST data size yaxy can handle when HTTPS is used (did not try wo HTTPS though). In our case 2.5Gb file upload is crashing yaxy.
RangeError[ERR_INVALID_OPT_VALUE]: Thevalue“2698873595”isinvalidforoption“size”atFunction.allocUnsafe(buffer.js:284:3)atFunction.concat(buffer.js:464:25)atState.<anonymous>(/usr/local/lib/node_modules/yaxy/lib/yaxy.js:364:36)at/usr/local/lib/node_modules/yaxy/lib/yaxy.js:512:25atArray.forEach(<anonymous>)
at State._onRequestEnd (/usr/local/lib/node_modules/yaxy/lib/yaxy.js:511:35)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1132:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
Upload works fine when yaxy is kept out of the loop. Also it works fine for 900Mb file through yaxy without any code/config changes.
Setting onprogress even listener on xhr.upload shows that whole file is being uploaded by the browser however load end event never happens. It looks like browser is closing request as time-out after more than 2 minutes with error code as empty response.
This nodejs ticket seems related but I'm no nodejs expert: nodejs/node#25057
P.S. Russian language is more than welcome, posting this in English so that everyone could find this issue.
The text was updated successfully, but these errors were encountered:
Моего английского, к сожалению, не хватает, чтобы связно выражаться, поэтому по-русски.
Похоже на то, что node не может создать такой большой Buffer, а я все чанки запроса перед проксированием зачем-то объединял в один. Выкатил версию 0.2.7 с отправкой данных без объединения в один Buffer. Должно полегчать.
First of all huge thanks for such a great tool, our UI development has been facilitated by it for years now. UI frameworks come and go but yaxy keeps working. We are planning to check webpack dev server in future but as of now we are good with what yaxy provides.
Not sure if project is maintained nor if this is worth fixing but seems like there is some limit of POST data size yaxy can handle when HTTPS is used (did not try wo HTTPS though). In our case 2.5Gb file upload is crashing yaxy.
Relevant part of configuration file:
File upload JS code:
Back-end is very simple express nodejs server based on express-fileupload documentation examples.
Yaxy crash error stack:
Upload works fine when yaxy is kept out of the loop. Also it works fine for 900Mb file through yaxy without any code/config changes.
Setting onprogress even listener on
xhr.upload
shows that whole file is being uploaded by the browser however load end event never happens. It looks like browser is closing request as time-out after more than 2 minutes with error code as empty response.This nodejs ticket seems related but I'm no nodejs expert: nodejs/node#25057
P.S. Russian language is more than welcome, posting this in English so that everyone could find this issue.
The text was updated successfully, but these errors were encountered: