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
Expired editor session 401 on save has unhelpful error message #4596
Comments
Can I take this issue? I'm looking for a way to contribute to this awesome platform. I'm new to the Ghost project though so it might take me a while. If it's pressing someone else should take this. :) |
I reckon it's about the farthest thing from pressing ;) It's all yours. On Sat, Dec 6, 2014 at 2:43 PM, Jonathan Yeong notifications@github.com
|
Just as a heads up, there is other work being done to improve the behaviour when a 401 happens: #3492 However, changing the save error message to say something useful would still be good :) |
Thanks for the heads up. I'm just trying to familiarise myself with the Ghost project and I'm wondering if there is a nice way to manually expire a token (other wise you'd have to wait?). |
@jonathanyeong I have a method, though it's a bit of work. I'm sure the DB people could help do it easier, but my mysql foo is weak.
...... ridiculous, but it works |
Hit me up on IRC if you need help with that repro |
Awesome! Thanks for the steps and I will definitely will hit you up on IRC if I run into problems. |
The solution @novaugust posted above doesn't seem to be a bad option to me :). Another way would be to delete all accesstokens from the DB:
|
I don't think this is a problem now that #3492 is in? Seems like the reauthentication flow is working quite nicely now. |
Issue Summary
If your session expired on the editor and you attempt a save, the error is reported as Unknown Error. Worse, you're going to be prompted to leave/stay because of the unauthed redirect. Staying, however, won't let you save your work.
Reproduction Steps
Specs
Latest Chrome,
Ghost Pro 0.5.6
I'm not sure much can be done about the modal; I'd consider this issue solved if the 401 just showed a more helpful "You aren't logged in" error message. Because of that, I'd call this a beginner issue, eh?
The text was updated successfully, but these errors were encountered: