Skip to content

Instantly share code, notes, and snippets.

@scplay
Last active June 25, 2025 14:32
Show Gist options
  • Select an option

  • Save scplay/f4b039e103a46f63111ae03c290ab0d1 to your computer and use it in GitHub Desktop.

Select an option

Save scplay/f4b039e103a46f63111ae03c290ab0d1 to your computer and use it in GitHub Desktop.
Sentry WebHooks
{
"id": "6707915160",
"project": "react-ts-demo",
"project_name": "react-ts-demo",
"project_slug": "react-ts-demo",
"logger": null,
"level": "error",
"culprit": "raven.scripts.runner in main",
"message": "This is an example Python exception",
"url": "https://zizzzzzz.sentry.io/issues/6707915160/?referrer=webhooks_plugin",
"triggering_rules": [],
"event": {
"event_id": "dea770ccd962425b9643f5837242c885",
"level": "error",
"version": "5",
"type": "default",
"logentry": {
"formatted": "This is an example Python exception",
"message": null,
"params": null
},
"logger": "",
"modules": {
"my.package": "1.0.0"
},
"platform": "python",
"timestamp": 1750860496.494,
"received": 1750860556.495368,
"environment": "prod",
"user": {
"id": "1",
"email": "[email protected]",
"ip_address": "127.0.0.1",
"username": "sentry",
"name": "Sentry",
"sentry_user": "id:1",
"geo": {
"country_code": "GB",
"city": "London",
"region": "H9"
}
},
"request": {
"url": "http://example.com/foo",
"method": "GET",
"data": {
"hello": "world"
},
"query_string": [
[
"foo",
"bar"
]
],
"cookies": [
[
"foo",
"bar"
],
[
"biz",
"baz"
]
],
"headers": [
[
"Content-Type",
"application/json"
],
[
"Referer",
"http://example.com"
],
[
"User-Agent",
"Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36"
]
],
"env": {
"ENV": "prod"
},
"inferred_content_type": "application/json",
"api_target": null,
"fragment": null
},
"contexts": {
"browser": {
"browser": "Chrome 28.0.1500",
"name": "Chrome",
"version": "28.0.1500",
"type": "browser"
},
"client_os": {
"os": "Windows 8",
"name": "Windows",
"version": "8",
"type": "os"
}
},
"stacktrace": {
"frames": [
{
"function": "build_msg",
"module": "raven.base",
"filename": "raven/base.py",
"abs_path": "/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/base.py",
"lineno": 303,
"pre_context": [
" frames = stack",
"",
" data.update({",
" 'sentry.interfaces.Stacktrace': {",
" 'frames': get_stack_info(frames,"
],
"context_line": " transformer=self.transform)",
"post_context": [
" },",
" })",
"",
" if 'sentry.interfaces.Stacktrace' in data:",
" if self.include_paths:"
],
"in_app": false,
"vars": {
"'culprit'": null,
"'data'": {
"'message'": "u'This is a test message generated using ``raven test``'",
"'sentry.interfaces.Message'": {
"'message'": "u'This is a test message generated using ``raven test``'",
"'params'": []
}
},
"'date'": "datetime.datetime(2013, 8, 13, 3, 8, 24, 880386)",
"'event_id'": "'54a322436e1b47b88e239b78998ae742'",
"'event_type'": "'raven.events.Message'",
"'extra'": {
"'go_deeper'": [
[
"{\"'bar'\":[\"'baz'\"],\"'foo'\":\"'bar'\"}"
]
],
"'loadavg'": [
0.37255859375,
0.5341796875,
0.62939453125
],
"'user'": "'dcramer'"
},
"'frames'": "<generator object iter_stack_frames at 0x107bcc3c0>",
"'handler'": "<raven.events.Message object at 0x107bd0890>",
"'k'": "'sentry.interfaces.Message'",
"'kwargs'": {
"'level'": 20,
"'message'": "'This is a test message generated using ``raven test``'"
},
"'public_key'": null,
"'result'": {
"'message'": "u'This is a test message generated using ``raven test``'",
"'sentry.interfaces.Message'": {
"'message'": "u'This is a test message generated using ``raven test``'",
"'params'": []
}
},
"'self'": "<raven.base.Client object at 0x107bb8210>",
"'stack'": true,
"'tags'": null,
"'time_spent'": null,
"'v'": {
"'message'": "u'This is a test message generated using ``raven test``'",
"'params'": []
}
},
"colno": null,
"data": {
"client_in_app": false
},
"errors": null,
"raw_function": null,
"image_addr": null,
"instruction_addr": null,
"addr_mode": null,
"package": null,
"platform": null,
"source_link": null,
"symbol": null,
"symbol_addr": null,
"trust": null,
"lock": null
},
{
"function": "capture",
"module": "raven.base",
"filename": "raven/base.py",
"abs_path": "/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/base.py",
"lineno": 459,
"pre_context": [
" if not self.is_enabled():",
" return",
"",
" data = self.build_msg(",
" event_type, data, date, time_spent, extra, stack, tags=tags,"
],
"context_line": " **kwargs)",
"post_context": [
"",
" self.send(**data)",
"",
" return (data.get('event_id'),)",
""
],
"in_app": false,
"vars": {
"'data'": null,
"'date'": null,
"'event_type'": "'raven.events.Message'",
"'extra'": {
"'go_deeper'": [
[
"{\"'bar'\":[\"'baz'\"],\"'foo'\":\"'bar'\"}"
]
],
"'loadavg'": [
0.37255859375,
0.5341796875,
0.62939453125
],
"'user'": "'dcramer'"
},
"'kwargs'": {
"'level'": 20,
"'message'": "'This is a test message generated using ``raven test``'"
},
"'self'": "<raven.base.Client object at 0x107bb8210>",
"'stack'": true,
"'tags'": null,
"'time_spent'": null
},
"colno": null,
"data": {
"client_in_app": false
},
"errors": null,
"raw_function": null,
"image_addr": null,
"instruction_addr": null,
"addr_mode": null,
"package": null,
"platform": null,
"source_link": null,
"symbol": null,
"symbol_addr": null,
"trust": null,
"lock": null
},
{
"function": "captureMessage",
"module": "raven.base",
"filename": "raven/base.py",
"abs_path": "/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/base.py",
"lineno": 577,
"pre_context": [
" \"\"\"",
" Creates an event from ``message``.",
"",
" >>> client.captureMessage('My event just happened!')",
" \"\"\""
],
"context_line": " return self.capture('raven.events.Message', message=message, **kwargs)",
"post_context": [
"",
" def captureException(self, exc_info=None, **kwargs):",
" \"\"\"",
" Creates an event from an exception.",
""
],
"in_app": false,
"vars": {
"'kwargs'": {
"'data'": null,
"'extra'": {
"'go_deeper'": [
"[{\"'bar'\":[\"'baz'\"],\"'foo'\":\"'bar'\"}]"
],
"'loadavg'": [
0.37255859375,
0.5341796875,
0.62939453125
],
"'user'": "'dcramer'"
},
"'level'": 20,
"'stack'": true,
"'tags'": null
},
"'message'": "'This is a test message generated using ``raven test``'",
"'self'": "<raven.base.Client object at 0x107bb8210>"
},
"colno": null,
"data": {
"client_in_app": false
},
"errors": null,
"raw_function": null,
"image_addr": null,
"instruction_addr": null,
"addr_mode": null,
"package": null,
"platform": null,
"source_link": null,
"symbol": null,
"symbol_addr": null,
"trust": null,
"lock": null
},
{
"function": "send_test_message",
"module": "raven.scripts.runner",
"filename": "raven/scripts/runner.py",
"abs_path": "/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/scripts/runner.py",
"lineno": 77,
"pre_context": [
" level=logging.INFO,",
" stack=True,",
" tags=options.get('tags', {}),",
" extra={",
" 'user': get_uid(),"
],
"context_line": " 'loadavg': get_loadavg(),",
"post_context": [
" },",
" ))",
"",
" if client.state.did_fail():",
" print('error!')"
],
"in_app": false,
"vars": {
"'client'": "<raven.base.Client object at 0x107bb8210>",
"'data'": null,
"'k'": "'secret_key'",
"'options'": {
"'data'": null,
"'tags'": null
}
},
"colno": null,
"data": {
"client_in_app": false
},
"errors": null,
"raw_function": null,
"image_addr": null,
"instruction_addr": null,
"addr_mode": null,
"package": null,
"platform": null,
"source_link": null,
"symbol": null,
"symbol_addr": null,
"trust": null,
"lock": null
},
{
"function": "main",
"module": "raven.scripts.runner",
"filename": "raven/scripts/runner.py",
"abs_path": "/home/ubuntu/.virtualenvs/getsentry/src/raven/raven/scripts/runner.py",
"lineno": 112,
"pre_context": [
" print(\"Using DSN configuration:\")",
" print(\" \", dsn)",
" print()",
"",
" client = Client(dsn, include_paths=['raven'])"
],
"context_line": " send_test_message(client, opts.__dict__)",
"in_app": false,
"vars": {
"'args'": [
"'test'",
"'https://ebc35f33e151401f9deac549978bda11:[email protected]/1'"
],
"'client'": "<raven.base.Client object at 0x107bb8210>",
"'dsn'": "'https://ebc35f33e151401f9deac549978bda11:[email protected]/1'",
"'opts'": "<Values at 0x107ba3b00: {'data': None, 'tags': None}>",
"'parser'": "<optparse.OptionParser instance at 0x107ba3368>",
"'root'": "<logging.Logger object at 0x107ba5b10>"
},
"colno": null,
"data": {
"client_in_app": false
},
"errors": null,
"raw_function": null,
"image_addr": null,
"instruction_addr": null,
"addr_mode": null,
"package": null,
"platform": null,
"post_context": null,
"source_link": null,
"symbol": null,
"symbol_addr": null,
"trust": null,
"lock": null
}
]
},
"tags": [
[
"browser",
"Chrome 28.0.1500"
],
[
"browser.name",
"Chrome"
],
[
"client_os",
"Windows 8"
],
[
"client_os.name",
"Windows"
],
[
"environment",
"prod"
],
[
"level",
"error"
],
[
"sentry:user",
"id:1"
],
[
"server_name",
"web01.example.org"
],
[
"url",
"http://example.com/foo"
]
],
"extra": {
"emptyList": [],
"emptyMap": {},
"length": 10837790,
"results": [
1,
2,
3,
4,
5
],
"session": {
"foo": "bar"
},
"unauthorized": false,
"url": "http://example.org/foo/bar/"
},
"grouping_config": {
"id": "newstyle:2023-01-11",
"enhancements": "KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ#KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ#KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ"
},
"metadata": {
"title": "This is an example Python exception",
"in_app_frame_mix": "system-only"
},
"fingerprint": [
"{{ default }}"
],
"hashes": [
"3a2b45089d0211943e5a6645fb4cea3f"
],
"culprit": "raven.scripts.runner in main",
"title": "This is an example Python exception",
"location": null,
"_ref": 4508393352658944,
"_ref_version": 2,
"_metrics": {
"bytes.stored.event": 8530
},
"nodestore_insert": 1750860556.742863,
"id": "dea770ccd962425b9643f5837242c885"
}
}
{
"host": "38b9-2408-8256-3287-165a-71ee-812f-2022-e20.ngrok-free.app",
"user-agent": "python-urllib3/2.2.2",
"content-length": "9566",
"accept-encoding": "identity",
"baggage": "sentry-environment=prod,sentry-release=frontend%40c7a27f6aa5d3bb86e36290cc36f6cb5c2372f195,sentry-public_key=c51734c603c4430eb57cb0a5728a479d,sentry-trace_id=662bf1e2d4bc4ff2b6813d8ad2a5972e,sentry-org_id=1,sentry-transaction=/settings/projects/%3AprojectId/plugins/%3ApluginId/,sentry-sampled=true,sentry-sample_rand=0.05501007599937724,sentry-sample_rate=1.0",
"content-type": "application/json",
"sentry-trace": "662bf1e2d4bc4ff2b6813d8ad2a5972e-870fac2fda81498a-1",
"x-forwarded-for": "104.155.159.182",
"x-forwarded-host": "38b9-2408-8256-3287-165a-71ee-812f-2022-e20.ngrok-free.app",
"x-forwarded-proto": "https"
}
{
"// ref link //": "https://docs.sentry.io/organization/integrations/integration-platform/webhooks/errors/",
"// this is Error type request //": "",
"action": "created",
"actor": {
"id": "sentry",
"name": "Sentry",
"type": "application"
},
"data": {
"error": {
"_ref": 1293919,
"_ref_version": 2,
"contexts": {
"browser": {
"name": "Chrome",
"type": "browser",
"version": "75.0.3770"
},
"os": {
"name": "Mac OS X",
"type": "os",
"version": "10.14.0"
}
},
"culprit": "?(runner)",
"datetime": "2019-08-19T20:58:37.391000Z",
"dist": null,
"event_id": "bb78c1407cea4519aa397afc059c793d",
"exception": {
"values": [
{
"mechanism": {
"data": {
"message": "blooopy is not defined",
"mode": "stack",
"name": "ReferenceError"
},
"description": null,
"handled": false,
"help_link": null,
"meta": null,
"synthetic": null,
"type": "onerror"
},
"stacktrace": {
"frames": [
{
"abs_path": "https://null.jsbin.com/runner",
"colno": 5,
"context_line": "<meta charset=utf-8>",
"data": {
"orig_in_app": 1
},
"errors": null,
"filename": "/runner",
"function": null,
"image_addr": null,
"in_app": false,
"instruction_addr": null,
"lineno": 3,
"module": "runner",
"package": null,
"platform": null,
"post_context": [
"<title>JS Bin Runner</title>",
"",
"<style type=\"text/css\">",
" body {",
" margin: 0;"
],
"pre_context": ["<!doctype html>", "<html>"],
"raw_function": null,
"symbol": null,
"symbol_addr": null,
"trust": null,
"vars": null
}
]
},
"type": "ReferenceError",
"value": "blooopy is not defined"
}
]
},
"fingerprint": ["{{ default }}"],
"grouping_config": {
"enhancements": "eJybzDhxY05qemJypZWRgaGlroGxrqHRBABbEwcC",
"id": "legacy:2019-03-12"
},
"hashes": ["07d2da329989f6cd310eb5f1c5e828a4"],
"issue_url": "https://sentry.io/api/0/issues/1170820242/",
"issue_id": "1170820242",
"key_id": "667532",
"level": "error",
"location": "/runner",
"logger": "",
"message": "",
"metadata": {
"filename": "/runner",
"type": "ReferenceError",
"value": "blooopy is not defined"
},
"platform": "javascript",
"project": 1,
"received": 1566248317.391,
"release": null,
"request": {
"cookies": null,
"data": null,
"env": null,
"fragment": null,
"headers": [
[
"User-Agent",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
]
],
"inferred_content_type": null,
"method": null,
"query_string": [],
"url": "https://null.jsbin.com/runner"
},
"sdk": {
"integrations": [
"InboundFilters",
"FunctionToString",
"BrowserApiErrors",
"Breadcrumbs",
"GlobalHandlers",
"LinkedErrors",
"HttpContext"
],
"name": "sentry.javascript.browser",
"packages": [
{
"name": "npm:@sentry/browser",
"version": "5.5.0"
}
],
"version": "5.5.0"
},
"tags": [
["browser", "Chrome 75.0.3770"],
["browser.name", "Chrome"],
["handled", "no"],
["level", "error"],
["mechanism", "onerror"],
["os", "Mac OS X 10.14.0"],
["os.name", "Mac OS X"],
["user", "ip:162.217.75.90"],
["url", "https://null.jsbin.com/runner"]
],
"time_spent": null,
"timestamp": 1566248317.391,
"title": "ReferenceError: blooopy is not defined",
"type": "error",
"url": "https://sentry.io/api/0/projects/test-org/front-end/events/bb78c1407cea4519aa397afc059c793d/",
"user": {
"ip_address": "162.218.85.90"
},
"version": "7",
"web_url": "https://sentry.io/organizations/test-org/issues/1170820242/events/bb78c1407cea4519aa397afc059c793d/"
}
},
"installation": {
"uuid": "a8e5d37a-696c-4c54-adb5-b3f28d64c7de"
}
}
{
"// ref link //": "https://docs.sentry.io/organization/integrations/integration-platform/webhooks/",
"Content-Type": "application/json",
"Request-ID": "<request_uuid>",
"Sentry-Hook-Resource": "<resource> | installation | event_alert | issue | metric_alert | error | comment",
"Sentry-Hook-Timestamp": "<timestamp>",
"Sentry-Hook-Signature": "<generated_signature>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment