tpaine on Nostr: I've been caught by this myself. If you design a REST API with URL parameters, you'll ...
I've been caught by this myself. If you design a REST API with URL parameters, you'll eventually reach the maximum size of an address in the browser. If you don't cap these parameters, the user might end up with an invalid request.
Published at
2025-02-12 14:07:35Event JSON
{
"id": "01b964f28ba4f4db9b87c068c02b8d817da769650518030ce569544fd1bf8ea7",
"pubkey": "587b29e526e20a8c3cc8d2a9a135d0f9d0dab0ffd922370cffac651255315c97",
"created_at": 1739369255,
"kind": 1,
"tags": [
[
"e",
"90198cc1c2e69a9b69f2f6fab70f64277f14d321a20270189080babba76eae68",
"wss://bitcoiner.social/",
"root",
"6e468422dfb74a5738702a8823b9b28168abab8655faacb6853cd0ee15deee93"
],
[
"e",
"90198cc1c2e69a9b69f2f6fab70f64277f14d321a20270189080babba76eae68",
"wss://bitcoiner.social/",
"reply",
"6e468422dfb74a5738702a8823b9b28168abab8655faacb6853cd0ee15deee93"
],
[
"p",
"6e468422dfb74a5738702a8823b9b28168abab8655faacb6853cd0ee15deee93"
]
],
"content": "I've been caught by this myself. If you design a REST API with URL parameters, you'll eventually reach the maximum size of an address in the browser. If you don't cap these parameters, the user might end up with an invalid request.",
"sig": "6a360812cf2a83f03b300b3ac77681ab3d3561cda79f451bd3c63eb556e601d3bd919b2e730931038efa5ef786b0f59af4f147443f9bfa4e3696f8d4c1da64e9"
}