{% block body %}

Kent

A fake Sentry server for debugging and integration tests

Errors

There are {{ errors|count }} errors in memory.

{% if errors %} {% endif %}

API

Name End point and notes
Sentry DSN

{{ dsn }}

Returns no payload.

If you're running this in a Docker container and the service you want sending errors to Fake Sentry is in another Docker container, then you will need to use the appropriate host for the service.

Error list

{{ host }}/api/errorlist/

Returns JSON payload.

errors
List of error ids as strings.

Example:

{
  "errors": [
    "f2edba96-0433-47e0-af86-ecfbbb16a544",
    "1a45b81f-5960-4174-9945-7fe9a8285d90
  ]
}
Error

{{ host }}/api/error/<ERRORID>

Returns JSON payload.

error_id
Error id as a string
payload
Error payload sent by the sentry-sdk

Contrived example:

{
  "error_id": "f2edba96-0433-47e0-af86-ecfbbb16a544",
  "payload": {
    whatever sentry-sdk sent here
  }
}
Flush errors

{{ host }}/api/flush/

Returns JSON payload.

success
true if successful

Example:

{"success": true}

Always use Sentry project id 1.

{% endblock %}