prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.64k stars 1.92k forks source link

415: Unsupported Media Type #12996

Open NiTeDK opened 2 months ago

NiTeDK commented 2 months ago

Description of the bug

When I slice a file and upload and print to the printer via Prusa Link, I receive an error: HTTP 415: 415: Unsupported Media Type. Not a GCODE. This seems to be caused by an apostrophe (') in the stl filename - when I remove the apostrophe, it uploads and prints. image

Project file & How to reproduce

Mustang GT 500 'Eleanor Kit Card set with separate front - tires.zip

  1. Slice
  2. CTRL+SHIFT+G
  3. Upload and Print

Checklist of files included above

Version of PrusaSlicer

2.8.0+win64

Operating system

Windows 11 BUILD 22631

Printer model

Prusa MK4

gitley commented 1 month ago

Seems to also be caused by long filenames (with spaces and/or hyphens)

Horizonal Mount Minimal - LEGO Technic 42141 McLaren Formula 1 F1 Race Car_0.4n_0.2mm_PLA_XLIS_1h26m.bgcode

TD-er commented 1 month ago

@gitley I encountered the same issue here. Saving the file, renaming it to something shorter and then uploading did indeed fix my issue. Thanks!