moonraker-timelapse icon indicating copy to clipboard operation
moonraker-timelapse copied to clipboard

Thumbnail not loading: 401 unauthorized

Open emilevirus opened this issue 2 years ago • 3 comments

It might be a config issue but thumbnails and frames won't load. Any idea why? Error:

error: { code: 401, message: "Unauthorized", traceback: "Traceback (most recent call last):

File "/home/pi/moonraker-env/lib/python3.9/site-packages/tornado/web.py", line 1681, in _execute result = self.prepare()

File "/home/pi/moonraker/moonraker/app.py", line 494, in prepare self.current_user = auth.check_authorized(self.request)

File "/home/pi/moonraker/moonraker/components/authorization.py", line 675, in check_authorized raise HTTPError(401, "Unauthorized")

tornado.web.HTTPError: HTTP 401: Unauthorized (Unauthorized) " }

emilevirus avatar May 28 '22 01:05 emilevirus

@emilevirus sorry but the timelapse plugin only creates the thumbnails. Requesting the file is made by your Ui (mainsail or fluidd) and moonraker filemanager sends it. I can't tell you where it is failing, the only thing this error message says is that the request has a permission problem. Either your Ui makes a bad request which isn't possible to fullfill by moonraker. Or moonraker can't read the file from your filesystem because of permission problems. Or your client wasn't authorized in the first place (unlikely)

please upload your full moonraker.log so i can investigate that and either help you to solve the problem or guide you to the right GH page to raise a issue there.

FrYakaTKoP avatar Jun 03 '22 18:06 FrYakaTKoP

moonraker.log Here

emilevirus avatar Jun 03 '22 18:06 emilevirus

This is a known issue with force_logins set to True. Basically, only the gcode thumbnails are whitelisted, but the timelapse thumbnails aren't, so requesting those with authentication forced results in an error.

matmen avatar Jun 03 '22 18:06 matmen

seems fixed in fluidd with the commits above, closed.

FrYakaTKoP avatar Oct 17 '22 22:10 FrYakaTKoP