-
-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: 401 "Unauthorized" When atempting to download config files. #176
Comments
Hey, Also make sure you followed the steps as described in Issue Arksine/moonraker#516 This will hit you after a fresh flash of MainsailOS also. Regards Kwad |
I am aware this is intended behavior. I filed this problem under bugs just to make someone aware that something like this can happen in, case other users have similar issues. I have never changed anything about moonraker.conf, and have been using both machines without issue for ~6 months. Suddenly after updating, I have intermittent problems. |
Here is my moonraker.conf. After further testing. I am unable to authenticate properly when I point my browser to my machine's hostname (i.e. http://tevo.local). I can connect to the web interface through hostname, and can control the machine just fine to run prints already uploaded or move axes etc. I cannot upload or download any files though. I have no issues when connecting via local IP. Uploading and downloading works as expected. I know I'm an idiot, so maybe it's a DNS issue.
|
So, I asked internally again. This is an configuration error belonging to IPv6, your network uses IPv6 and those have to be also in In your case For further help I highly encourage you to use, as mentioned, our Discord server. This allows others to help you and the team gets some free time to develop new things ;) |
What happened
Trying to download configs from the web UI off of two machines running MainsailOS results in the following error:
{"error": {"code": 401, "message": "Unauthorized", "traceback": "Traceback (most recent call last):\n\n File \"/home/pi/moonraker-env/lib/python3.7/site-packages/tornado/web.py\", line 1690, in _execute\n result = self.prepare()\n\n File \"/home/pi/moonraker/moonraker/app.py\", line 539, in prepare\n self.current_user = auth.check_authorized(self.request)\n\n File \"/home/pi/moonraker/moonraker/components/authorization.py\", line 751, in check_authorized\n raise HTTPError(401, \"Unauthorized\")\n\ntornado.web.HTTPError: HTTP 401: Unauthorized (Unauthorized)\n"}}
Issue started after using the update manager to update all components to latest versions. Additionally, the built-in editor is unable to open any files in the /config directory.
What did you expect to happen
Expected download of files.
How to reproduce
In the machine tab, in the config directory, right click any file and select download. A new tab appears with the error.
Additional information
I can grab logs if need be, but will have to ssh as downloading them from web UI makes the same error.
The text was updated successfully, but these errors were encountered: