ActionView::Template::Error: undefined method `xpath'

Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/1178188

Backtrace:

NoMethodError: undefined method `xpath' for [Sentry, Gitlab::ErrorTracking::Logger]:Array (NoMethodError)

      nodes = document.xpath(xpath)
                      ^^^^^^
  from lib/banzai/querying.rb:21:in `css'
  from lib/banzai/reference_redactor.rb:124:in `block in document_nodes'
  from lib/banzai/reference_redactor.rb:123:in `map'
  from lib/banzai/reference_redactor.rb:123:in `document_nodes'
  from lib/banzai/reference_redactor.rb:28:in `redact'
  from lib/banzai/filter/reference_redactor_filter.rb:15:in `call'
  from html-pipeline (2.14.3) lib/html/pipeline/filter.rb:129:in `call'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:134:in `block in perform_filter'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:174:in `block in instrument'
  from activesupport (7.0.8.4) lib/active_support/notifications.rb:208:in `instrument'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:173:in `instrument'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:133:in `perform_filter'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:119:in `block (2 levels) in call'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:118:in `each'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:118:in `inject'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:118:in `block in call'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:174:in `block in instrument'
  from activesupport (7.0.8.4) lib/active_support/notifications.rb:208:in `instrument'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:173:in `instrument'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:116:in `call'
  from html-pipeline (2.14.3) lib/html/pipeline.rb:148:in `to_html'
  from lib/banzai/pipeline/base_pipeline.rb:26:in `block (2 levels) in singleton class'
  from lib/banzai/renderer.rb:158:in `post_process'
  from lib/banzai.rb:32:in `post_process'
  from app/services/markup/rendering_service.rb:60:in `postprocess'
  from app/services/markup/rendering_service.rb:20:in `execute'
  from app/helpers/markup_helper.rb:115:in `markup'
  from app/views/projects/blob/viewers/_markup.html.haml:3
Assignee Loading
Time tracking Loading