Catch BlockedUrlError when dispatching external status check
What does this MR do and why?
This MR catches BlockedUrlError
that might occur when user provides invalid URL in external status check.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Create new project
- Within that project, create new External Status Check (https://docs.gitlab.com/ee/user/project/merge_requests/status_checks.html) with invalid URL.
- Observe logs for Sidekiq/exceptions logged in
tail -f log/sidekiq.log
andtail -f log/exceptions_json.log
. - You should not see any exception casued by invalid URL.
Edited by Alan (Maciej) Paruszewski