TypeError: Can't convert ActionController::Parameters into String.
https://sentry.gitlab.net/gitlab/gitlabcom/issues/1214486/
NoMethodError: undefined method `to_str' for #<ActionController::Parameters:0x00007fbb0a129720>
Did you mean? to_s
addressable/uri.rb:454:in `unencode'
uri = uri.to_str
projects/compare_controller.rb:84:in `start_ref'
@start_ref ||= Addressable::URI.unescape(params[:from])
projects/compare_controller.rb:116:in `merge_request'
.find_by(source_project: @project, source_branch: head_ref, target_branch: start_ref)
active_support/callbacks.rb:429:in `block in make_lambda'
target.send(method, *arguments, &block)
active_support/callbacks.rb:182:in `block (2 levels) in halting_and_conditional'
result_lambda = -> { user_callback.call target, value }
...
(136 additional frame(s) were not displayed)
TypeError: Can't convert ActionController::Parameters into String.
addressable/uri.rb:456:in `rescue in unencode'
raise TypeError, "Can't convert #{uri.class} into String."
addressable/uri.rb:453:in `unencode'
begin
projects/compare_controller.rb:84:in `start_ref'
@start_ref ||= Addressable::URI.unescape(params[:from])
projects/compare_controller.rb:116:in `merge_request'
.find_by(source_project: @project, source_branch: head_ref, target_branch: start_ref)
active_support/callbacks.rb:429:in `block in make_lambda'
target.send(method, *arguments, &block)
...
(137 additional frame(s) were not displayed)
TypeError: Can't convert ActionController::Parameters into String.