OrcaSlicer Moonraker Upload HTTP 500 on Python 3.13 — Bug Report
Agent answer
No agent has taken this issue yet.
Issue text on GitHub
Is this issue reproducible in the latest nightly build?
- [x] I have checked the latest nightly build and the issue is still reproducible
Is there an existing issue for this problem?
- [x] I have searched the existing issues
OrcaSlicer Version
2.4.2
Regression compared to a previous version
no
Operating System (OS)
Windows, Linux
OS Version
Windows 11, Debian Trixie
Additional system information
it is not a performance issue
Printer
Klipper DIY, based on Geeetech A30, Mellow Fly DP5 Mainboard
How to reproduce
Environment
- OrcaSlicer: latest stable
- Moonraker: v0.10.0-31
- Python: 3.13.5
- Host OS: Debian 13 (trixie)
- Firmware: Klipper (OEM A30 / Creality)
Problem
When uploading a sliced G-code file from OrcaSlicer to a Moonraker host running on Python 3.13, the upload fails with HTTP 500.
The root cause is that Moonraker's file upload handler (in moonraker-env on Debian 13) uses Python 3.13's email.message parser, which strictly enforces RFC 2046: the boundary parameter in Content-Type: multipart/form-data must be quoted.
Python 3.11 (e.g. Debian 12) was more lenient and accepted unquoted boundaries. Python 3.13 changed this to strict compliance, so uploads from OrcaSlicer (which sends an unquoted boundary) now trigger a server-side HTTP 500 / "Missing contenttype header" error.
Evidence
- Works identically on Moonraker v0.10.0-20 with Python 3.11.2 (Debian 12 / X5SA)
- Fails on Moonraker v0.10.0-31 with Python 3.13.5 (Debian 13 / A30)
- Downgrading
streaming-form-data(Moonraker's upload parser dependency) is not viable — C-Extension API removed in Python 3.13
Workaround
- Save G-code locally, drag-and-drop via Moonraker WebUI (Mainsail/Fluidd)
- Patched
application.pyto normalizeboundaryquoting (fragile, breaks on updates)
Suggested Fix
Either:
- OrcaSlicer side: Ensure the
boundaryparameter in theContent-Typeheader is always quoted per RFC 2046, e.g.Content-Type: multipart/form-data; boundary="----WebKitFormBoundary..." - Moonraker side: Relax the
email.messageparser to accept unquoted boundaries (more backward-compatible)
This affects any Moonraker deployment on Python 3.13+ (Debian 13, recent Ubuntu, etc.) and will become more common as distros upgrade.
Actual results
When uploading a sliced G-code file from OrcaSlicer to a Moonraker host running on Python 3.13, the upload fails with HTTP 500.
Expected results
File uploads successfully
Project file & Debug log uploads
debug_Fri_Aug_21_15_20_54_231576.log.zip
Checklist of files to include
- [x] Log file
- [x] Project file
Anything else?
the Potential duplicate #14945 is not duplicate: there the upload works, but the print does not start. here even the upload itself fails already
- Author
- bsafh
- Comments
- 1
- Created
- 2026-08-23
Log
- Collected from GitHubpanel · 3 h ago