-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Use exceptions instead of HTML responses with error statuses #8499
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
a1f6618
to
0698e1f
Compare
Quality Gate passedIssues Measures |
/check |
❌ Some checks failed |
@SpecLad, if you're working on this, please check if you can improve the situation with output data in the error, asked here: #8348 (comment)
|
@zhiltsov-max I don't understand what that comment is talking about. Is it some specific error? What's |
@SpecLad The Idea was to improve the UX of the error. It seems we need to show only stuff that is written inside |
Ah, I see. I think that exception is coming from inside an RQ job. I do think we have some deficiencies in how those exceptions are presented to the user, but fixing that would be out of scope for this PR. That said, I find it odd that that particular error would be thrown from an RQ job. It seems like it's just validating input parameters; it would be better to do that in the view before starting the RQ job. Not only is that more efficient, but it should also fix the presentation problem. |
Not everything can be validated before processing. For instance, in this case, you'd need to know that the input is video (it's possible to check, sure). It can only be checked after the |
Okay, that's a fair point. |
I don't have time to finish this PR right now; I'll try to come back to it later. |
Motivation and context
How has this been tested?
Checklist
develop
branch[ ] I have updated the documentation accordingly[ ] I have added tests to cover my changes[ ] I have linked related issues (see GitHub docs)[ ] I have increased versions of npm packages if it is necessary(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.