MatthewCroughan / octobalena

Control your 3d-printer with octoprint + octoscreen via balena!
GNU General Public License v2.0
49 stars 22 forks source link

Can't finish initial setup - Error 500 #35

Open lionel-deglise opened 3 years ago

lionel-deglise commented 3 years ago

When I finish last initial setup step and I click Finish, nothing append in the UI. Using FF dev tools I see an error 500 on /api/settings [POST]. In Balena logs there is a python stacktrace :

15.01.21 15:15:55 (+0100) octoprint File "/usr/local/lib/python3.7/dist-packages/octoprint/server/api/settings.py", line 936, in _saveSettings 15.01.21 15:15:55 (+0100) octoprint "gcode", name, script.replace("\r\n", "\n").replace("\r", "\n") 15.01.21 15:15:55 (+0100) octoprint AttributeError: 'NoneType' object has no attribute 'replace' 15.01.21 15:15:55 (+0100) octoprint 2021-01-15 14:15:55,422 - tornado.access - ERROR - 500 POST /api/settings (::ffff:192.168.1.106) 24.98ms

I'm running octoprint with balenaOS 2.58.3+rev1 on a raspberry 3 B+.

Jbithell commented 3 years ago

This issue appears to be related to this one https://github.com/OctoPrint/OctoPrint/issues/1154