{% extends "base.html" %} {% block title %}Debug - {{ user.username }}{% endblock %} {% block content %}

Action upload debug

File: {{ path }} {% if path_exists %}● exists{% else %}○ missing{% endif %}

Set environment variable GPODDER_DEBUG_ACTIONS_FILE=/path/to/dump.jsonl before starting the server. Each POST /api/2/episodes/<username>.json appends one JSON line.

{{ entries|length }} entry(ies)

{% for e in entries %}
{{ e.ts|fmt_ts if e.ts else '?' }} {% if e.headers and e.headers['user-agent'] %} · {{ e.headers['user-agent'] }} {% endif %} {% if e.body_parsed and e.body_parsed is iterable and e.body_parsed is not string %} · {{ e.body_parsed|length }} action(s) {% endif %} {% if e.client_ip %} · {{ e.client_ip }}{% endif %}
{{ e|tojson(indent=2) }}
{% else %}

No entries yet.

{% endfor %} {% endblock %}