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
Catch core engine exceptions in the API plan/simulate routes and return appropriate 4xx responses, mirroring the CLI. Optionally add a payload-size cap to /stream.
Why
plan_wind() and simulate_program() can raise LayerValidationError / SimulationError for bad input. The CLI handles these and exits cleanly; the API routes do not, so they surface as opaque HTTP 500s instead of actionable 4xx errors. This is an interface-parity gap.
The /stream endpoint also accepts an unbounded G-code string, which is a minor memory-exhaustion hardening item if the API is ever exposed beyond localhost.
Activity