-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Prusa Connect periodically fails with "missing or invalid token" #13507
Comments
While the result is similar (must re-log in), your Can you please clarify a few things from your OP: (also, edit your title so it doesn't look like a dup of 13137)
Note your symptoms sound a lot like a failure on some paths to request a new |
@m10d it does indeed seem more like a refresh issue, given the fact that it only happens after a certain time has passed and that, as you surmised, the app reconnects without needing a login after being restarted. As to the second point, I did not pay 100% attention, will try to reproduce now and take a closer look. But as far as I can recall the page shows stale information. As you can see from the screenshot it actually showed me as still being logged in (both in the app itself as in the embedded Prusa Connect page). I could also change tabs. But many (all?) actions caused an error popup. I'm somewhat familiar with OAuth2 and the idea of refresh tokens so it could indeed be that the refresh is not being handled correctly. I don't know how short-lived the access tokens are. If they are in the minutes then it could mean that the refresh normally works but sometimes fails (and then doesn't retry but enters in a failed state that it can't get out of) or the tokens are somewhat longer-lived, let's say an hour, which could possibly mean that the refresh doesn't work at all (at least in my case). |
I'm running into the same issue as @quintesse. I've only seen it happen if I leave Prusa Slicer open for a long time, but minimized/ in the background. The Prusa Connect tab still displays the web page skeleton with previous data and the error toast in the bottom right about missing security token. If I quit and reopen the slicer it fixes the problem when revisiting the Prusa Connect tab. I feel like I fixed it once, without quitting, by clicking into Username > User Teams in the top right, but I can't reproduce this time. Version 2.8.1+MacOS-arm64 |
I was able to reproduce it by switching back to any other tab and leaving it open on the desktop. When I left it on the Prusa Connect tab it didn't seem to happen. But perhaps minimizing would have worked as well as @michael-gillett found out. |
I also observe this issue occurring. The Prusa Connect login button at top right of Prusa Slicer screen shows user is logged in, but when Prusa Connect button is clicked, the details are inaccurate. When "Set Ready" is clicked on a printer, nothing happens, or sometimes it says "Missing or invalid security token". What ought to happen is that Prusa Slicer keeps the login status "alive" ongoing, and when "Prusa Connect" button is clicked, if necessary the prusa connection login status is refreshed and the contents of the screen brought up to date immediately. |
I am having this same issue. |
Same issue here, if I leave PrusaSlicer open for a while and then try to access the printers files I get the error "Invalid Security Token" I can still send prints to it, I just cannot do anything with the printer. |
Same issue here. |
It seams similar to #13439 |
I have also been having this problem on 1.8.1 running on MacOS. I tried running from the command line so logs show up. This error popped up after about 37 minutes of PrusaSlicer sitting in the background which corresponds to seeing 'Missing or invalid security token' notifications in the app:
|
+1 to experiencing this issue. It definitely happens after PrusaSlicer has been sitting idle for a while (4+ hours) and you come back to try and do something or check on a print. There is some timeout that it is hitting and then throwing the missing token error. |
Same issue here with V2.8.1 on CachyOS. |
instead of closing the application, you can click logout on PrusaConnect (in the upper right), then log back in, without having to close PrusaSlicer. It's really annoying that it requires you to open a browser window to login with either a connected Apple or Google Account instead of using an application native login window. Also the fact that it doesn't allow MacOS to store your Prusa login credentials in the PrusaConnect authentication window is very cumbersome. |
I seem to face this issue every time on Linux and MacOS. On Linux with the AppImage and the Fedora RPM. When opening Prusa Slicer I get the following logs:
And when I click on "Prusa Connect" at the top I get:
When logging out and in again, I get the the same/similar logs as on startup:
|
Same problem! I am having to log back in more than once a day. Using MacOS. |
I ended up giving up on using the Prusa Connect tab in Slicer and just keep a tab in Chrome open to connect.prusa3d.com, which works flawlessly. Something is just not working right with the web browser component used in the Slicer app and using a regular browser works fine. |
This is a really annoying issue. Why hasn't Prusa support responded to this string. This need to be fixed. Also, every time I try to set a nozzle preheat temperature the system crashes and the machine has to be rebooted. |
Same issue, rebooting PrusaSlicer resolves the issue but I lose all of my settings, please fix this. |
I noticed something interesting. Even though PrusaSlicer displays a message about the user being logged out, it is still possible to upload a .BGCODE file to Prusa Connect. See the screenshots below.
|
Its pretty clear that the integration between Prusa Slicer and Prusa Connect is broken. Its not entirely clear why we have this type of interface, with the login button on prusa slicer main screen and something different underlying the "prusa connect" button, which remembers prior login credentials, but forgets when a login timeout occurs. Its a crazy mixed up approach. Here is a better approach: i see no reason why there need to be two tickets on the same topic, as the same underlying cause is involved. But for sure Prusa need to take action to complete the task of integrating PC and PS. If the goal is to encourage folks to use PC the current poor effort does not achieve that goal.
|
Description of the bug
Even with the latest version 2.8.1 I get continuous "Missing or invalid security token" errors in the Prusa Connect tab.
This issue is similar but not exactly the same as #13137, I'm not getting blank pages anymore, but just a "working" page that doesn't let me do anything because it's missing the security token.
I think it would be very useful to have a way to force PrusaSlicer to re-authenticate without having to restart (which forces me to save ephemeral changes to a scrap project just so I don't lose those changes when restarting and then having to delete that file. It's a bit of a nuisance)
Project file & How to reproduce
Can't give an exact foolproof way to reproduce, but I think it's simply letting PrusaSlicer open for a long time.
If "enough" time has passed this problem will occur (and there doesn't seem to be a work-around except restarting PrusaSlicer).
Checklist of files included above
Version of PrusaSlicer
1.8.1
Operating system
Windows 11 Pro
Printer model
XL 2 head
The text was updated successfully, but these errors were encountered: