Skip to content

NoMethodError: undefined method 'each' in ResponseLogger

What does this MR do and why?

The ResponseLogger does not handle String response objects. This case only seems to happen when returning errors such as in https://sentry.gitlab.net/gitlab/gitlabcom/issues/4102929/ and https://sentry.gitlab.net/gitlab/gitlabcom/issues/4086378/?referrer=gitlab_plugin.

This MR handles the response when it's of type String.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #389205 (closed)

Edited by Michael Kozono

Merge request reports

Loading