Skip to content

Instantly share code, notes, and snippets.

@mksvdmtr
Forked from ezy/sentry-raw.sh
Created July 9, 2024 13:09
Show Gist options
  • Save mksvdmtr/bb0d5b117e21fd6a36eee73b3a65d686 to your computer and use it in GitHub Desktop.
Save mksvdmtr/bb0d5b117e21fd6a36eee73b3a65d686 to your computer and use it in GitHub Desktop.
CURL request to sentry without an SDK
# Replace <sentry_key>, <sentry-url> and <project-id> to formulate your CURL request. Don't forget to add a trailing slash to URL otherwise you'll get wierd CSRF errors!
curl -X POST --data '{ "exception": [{ "type": "$ErrorMessage"}] }' -H 'Content-Type: application/json' -H "X-Sentry-Auth: Sentry sentry_version=7, sentry_key=<sentry_key>, sentry_client=raven-bash/0.1" https://<sentry-url>/api/<project-id>/store/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment