Trailing whitespace in URLs in Slack Service (and perhaps others) results in bad URI
https://sentry.gitlap.com/gitlab/gitlabcom/issues/10206/
URI::InvalidURIError: bad URI(is not URI?): https://hooks.slack.com/services/REDACTED_KEY
app/models/project_services/slack_service.rb:89:in `new'
notifier = Slack::Notifier.new(webhook, opt)
app/models/project_services/slack_service.rb:89:in `execute'
notifier = Slack::Notifier.new(webhook, opt)
lib/gitlab/metrics/instrumentation.rb:155:in `block in execute'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
lib/gitlab/metrics/method_call.rb:23:in `measure'
retval = yield
lib/gitlab/metrics/instrumentation.rb:155:in `execute'
trans.method_call_for(#{label.to_sym.inspect}).measure { super }
...
(34 additional frame(s) were not displayed)
Edited by 🤖 GitLab Bot 🤖