Skip to content

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

@chris-smith-zocdoc

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

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