-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
NoMethodError in admin/order_cycles#index #2271
Comments
Seems like this might be related to a session timeout. The problem lies in the order of execution for the
Due to the JSON requests that are unauthorized are returning html (the home page) instead of JSON with a 401 status. There might be a way to override this behavior from Spree? |
great investigation @frank-west-iii ! I'm not sure what's best then here. Perhaps it's an error we can live with.
These two words together (override and Spree) are terrifying |
Agree re: overriding Spree. 👍 |
So what is the status for this bug @sauloperez @frank-west-iii do we move it forward? Leave with it and close? Or do something? |
We could at least fix the error so it does not occur again. The user will still not see any updates to their page when they click an action like "Show 30 more days". It will just fail silently for them. The user might then refresh their browser or take an action that will require them to log in again and the page will work again for them until they time out their session again 😄 The UX for it is not great, but that may be a more widespread issue across the application rather than this specific issue. I can remove the error from our logs, but a much bigger conversation may need to be had about handling 401 errors across the application on AJAX requests. |
That sounds like a good trade-off to me. Can you work on it?
Agree we need to review it but if we could live with it a bit longer... we have too many open 🔥 🔥 Proposals are welcome though @frank-west-iii |
Description
Katuma's Bugsnag reported the following error a week ago.
Expected Behavior
At the point the
OrderCycle
model is useduser
should always be defined.Actual Behavior
The app fails with the mentioned error when issuing the following request:
Steps to Reproduce
Severity
The reach of this bug is still unknown but doesn't seem to affect too many users, so severity 3.
Your Environment
The text was updated successfully, but these errors were encountered: