Skip to content

Sentry + Express sends "unavailable" body on GET requests #2502

Description

@chris-smith-zocdoc

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

5.14.2

Description

With the express integration, on requests without a body (like GET), "<unavailable>" is shown in the Sentry UI which is confusing. I think it would be better to not set the request body on the event, which allows the UI to hide that section.

image

This is happening because of these lines
https://github.com/getsentry/sentry-javascript/blob/5.14.2/packages/node/src/handlers.ts#L154-L158

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions