Skip to content

Error when moving issue from team-only issue tracker

ArgumentError: wrong number of arguments (given 2, expected 0..1)

https://sentry.gitlap.com/gitlab/gitlabcom/issues/13741/

ArgumentError: wrong number of arguments (given 2, expected 0..1)
  app/models/user.rb:351:in `to_reference'
    def to_reference(_from_project = nil)
  lib/gitlab/metrics/instrumentation.rb:155:in `block in to_reference'
    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 `to_reference'
    trans.method_call_for(#{label.to_sym.inspect}).measure { super }
  lib/gitlab/gfm/reference_rewriter.rb:79:in `build_cross_reference'
    referable.to_reference(@source_project, target_project)
...
(137 additional frame(s) were not displayed)