-
Notifications
You must be signed in to change notification settings - Fork 32
Add function error handler to api server 🎨 #7810
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
Add function error handler to api server 🎨 #7810
Conversation
…parc-simcore into function_cache_check_success
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7810 +/- ##
==========================================
+ Coverage 86.74% 88.21% +1.46%
==========================================
Files 1850 1465 -385
Lines 71936 60982 -10954
Branches 1218 476 -742
==========================================
- Hits 62403 53796 -8607
+ Misses 9191 7065 -2126
+ Partials 342 121 -221
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
...es/api-server/src/simcore_service_api_server/exceptions/handlers/_handler_function_errors.py
Show resolved
Hide resolved
|
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 3c20e92 |
|



What do these changes do?
The function api now returns cleaner error message when exceptions are thrown in the webserver etc. E.g in case access is denied, inputs don't follow the schema, etc.
Based on MB's suggestion on how to this, i.e. by adding a function error handler.
How to test
E.g. run a function with inputs that don't match the json schema, you should now get a clean error code and message
Dev-ops
No changes