{% block body %}

Kent

A fake Sentry server for debugging and integration tests

Errors

There are {{ errors|count }} errors in memory. [Flush]

{% if errors %} {% for error in errors %} {% endfor %}
timestamp project: event id summary
{{ error.timestamp }} {{ error.project_id }}: {{ error.error_id }} {{ error.summary }}
{% endif %}

API

Name End point and notes
Sentry DSN

GET {{ 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

GET {{ 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

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

Returns JSON payload.

project_id
Project id as an int
error_id
Error id as a string
payload
Error payload sent by the sentry-sdk

Contrived example:

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

POST {{ host }}/api/flush/

Returns JSON payload.

success
true if successful

Example:

{"success": true}
{% endblock %}