audreyt / ethercalc

Node.js port of Multi-user SocialCalc
https://ethercalc.net
Other
2.97k stars 538 forks source link

Multi sheets export to .ods, .xls crashes the server #795

Open Dri372 opened 1 year ago

Dri372 commented 1 year ago

On a fresh new version of ethercalc the server crashes evrytime I try to export to a .ods or .xls file.

I get these error messages :

/usr/lib/node_modules/ethercalc/node_modules/redis/index.js:602 throw err; ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at new NodeError (node:internal/errors:399:5) at ServerResponse.setHeader (node:_http_outgoing:663:11) at ServerResponse.res.setHeader (/usr/lib/node_modules/ethercalc/node_modules/connect/lib/patch.js:133:22) at ServerResponse.res.set.res.header (/usr/lib/node_modules/ethercalc/node_modules/express/lib/response.js:578:10) at ServerResponse.res.contentType.res.type (/usr/lib/node_modules/ethercalc/node_modules/express/lib/response.js:447:15) at /usr/lib/node_modules/ethercalc/main.js:131:34 at try_callback (/usr/lib/node_modules/ethercalc/node_modules/redis/index.js:592:9) at RedisClient.return_reply (/usr/lib/node_modules/ethercalc/node_modules/redis/index.js:685:13) at ReplyParser. (/usr/lib/node_modules/ethercalc/node_modules/redis/index.js:321:14) at ReplyParser.emit (node:events:513:28) at ReplyParser.send_reply (/usr/lib/node_modules/ethercalc/node_modules/redis/lib/parser/javascript.js:300:10) at ReplyParser.execute (/usr/lib/node_modules/ethercalc/node_modules/redis/lib/parser/javascript.js:203:22) at RedisClient.on_data (/usr/lib/node_modules/ethercalc/node_modules/redis/index.js:547:27) at Socket. (/usr/lib/node_modules/ethercalc/node_modules/redis/index.js:102:14) at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9) at Socket.Readable.push (node:internal/streams/readable:234:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) { code: 'ERR_HTTP_HEADERS_SENT' }

Node.js v18.14.1