Open Monokai opened 1 year ago
Hey Monokai!
I had the same issue, I read through this thread on Stack Overflow https://stackoverflow.com/questions/19917401/error-request-entity-too-large then changed the line 19 in /src/server.ts
from
app.use(express.json({limit: maxPayloadSize}));
to
let bodyParser = require('body-parser');
app.use(bodyParser.json({ limit: maxPayloadSize }));
app.use(bodyParser.urlencoded({ limit: maxPayloadSize, extended: true, parameterLimit: 1000000 }));
I don't know the exact reason but it works for me now. It seems to be an issue connected to the number of small lines rather than the file size.
Hah! Nice yo see you here @wwatkns, and thanks :) Now if I only remember what I was plotting a year ago. I might even have solved it by truncating all floating points, but your solution looks more future proof.
Never mind, the issue popped up again for a different plot after I slowed down the down acc
from 200 to 150mm/s²
I'm trying to plot an .SVG file of 9MB with lots of tiny paths. Saxi runs on a Raspberry PI with 4GB memory. The path planning phase goes ok, but nothing happens.
I'm running the latest Saxi on Node 18.16 on the PI. Looking in
/var/log/syslog
I see this:Any ideas?