Duistere Pluizenbal on Nostr: I had the brilliant idea to embed back-end debug data to pages as links: <a ...
I had the brilliant idea to embed back-end debug data to pages as links:
<a href="/debugjson?c={..json here}">debug info</a>
Which the '/debuginfo' enpoint would then nicely format.
...but that doesn't seem to work when the debug info easily exceeds 32 KiB, even after trying some compression. Firefox refuses to even follow the link.

Published at
2025-01-15 09:16:10Event JSON
{
"id": "477b9127f5de7d822d5943dd5c22beaa2f42128b6359461fd1c8d6dd8e805611",
"pubkey": "6dd915cc3f1f20f651a99b566c7c1ebb34a071a820f113b9aaf419c346b0e37d",
"created_at": 1736932570,
"kind": 1,
"tags": [
[
"emoji",
"blobcatthinking",
"https://files.lonely.town/custom_emojis/images/000/000/118/original/62a0078314492481.png"
],
[
"proxy",
"https://lonely.town/users/ayo/statuses/113831612914162121",
"activitypub"
]
],
"content": "I had the brilliant idea to embed back-end debug data to pages as links:\n\n\u003ca href=\"/debugjson?c={..json here}\"\u003edebug info\u003c/a\u003e\n\nWhich the '/debuginfo' enpoint would then nicely format.\n\n...but that doesn't seem to work when the debug info easily exceeds 32 KiB, even after trying some compression. Firefox refuses to even follow the link. :blobcatthinking:",
"sig": "ff6e2fd7bdf96a113626583853ecbf0516cc66076d97cbd34f39773d37302eff1551ceb9f3e763c3e6a3d7215af8d4cb03dfb4e8289e7cda1c71a9f1983c072a"
}