Skip to content

Empty message in webhook event #2015

@href

Description

@href

Package + Version

  • @sentry/browser

Version:

5.0.7

Description

The messages sent from Sentry-Javascript to our Zulip Chat Webhook contain no message, which is unhelpful because the Zulip integration is super bare-bones and without a message we cannot tell errors apart.

See https://github.com/zulip/zulip/blob/master/zerver/webhooks/sentry/view.py

This is a typical event that we receive through the webhook:

{
  "project_name": "Test",
  "message": "",
  "id": "981585759",
  "culprit": "?(/7da9c72a3b5f9e060b898ef7cd714b8a/common.bundle.js)",
  "project_slug": "foo-bar",
  "url": "https://sentry.io/organizations/....&referrer=webhooks_plugin",
  "level": "error",
  "triggering_rules": [
    "Send a notification for new events"
  ],
  "event": {
    ...
    "title": "ReferenceError: Can't find variable: test",
    ...
    }
}

As you can see the message is empty. This only occurs with sentry-javascript. In our sentry-python setup we always receive a message.

I'm tempted to write my own webhook handler, because there's clearly some useful information here (event.title would be a great alternative to message), but I do wonder why the message would be empty. Wouldn't it make sense for the message to contain some kind of string in any case?

Also, Is there some documentation about the webhook message format?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions