PABLOF7z on Nostr: JoshR continuing conversation here it looks like you guys are double URI encoding zap ...
JoshR (npub1j0s…g9a7) continuing conversation here
it looks like you guys are double URI encoding zap requests
```
const encodedEvent = encodeURIComponent(event);
const url = encodeURI(
`${callback}?amount=${sats2millisats(
amount
)}&nostr=${encodedEvent}&lnurl=${lnurl}`
);
```
even when double encoding the zap requests to you, I get back a 500 error
also, you are tagging the `e` of the event, but it's a parameterized replaceable event, so you should be using the `a` tag
Published at
2023-04-20 20:32:31Event JSON
{
"id": "64b756f0444cf832a0916b01cbb5c691682198e2b3f79af2a67bd24657723f79",
"pubkey": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52",
"created_at": 1682022751,
"kind": 1,
"tags": [
[
"p",
"93e174736c4719f80627854aca8b67efd0b59558c8ece267a8eccbbd2e7c5535"
]
],
"content": "nostr:npub1j0shgumvguvlsp38s49v4zm8algtt92cerkwyeagan9m6tnu256s2eg9a7 continuing conversation here\n\nit looks like you guys are double URI encoding zap requests\n\n```\nconst encodedEvent = encodeURIComponent(event);\n const url = encodeURI(\n `${callback}?amount=${sats2millisats(\n amount\n )}\u0026nostr=${encodedEvent}\u0026lnurl=${lnurl}`\n );\n```\n\neven when double encoding the zap requests to you, I get back a 500 error\n\nalso, you are tagging the `e` of the event, but it's a parameterized replaceable event, so you should be using the `a` tag",
"sig": "3eb0058813e62dab6eb721b664d02e2a2847e712d20ba9e57dbf9d37764dc7068628a5acc7e1cfbf4570a2977f3d09784d8b085a27cba9247f45e4ef38f91ba3"
}