Ademan on Nostr: OK I've created a simple sample page for making NIP-96 uploads the way I am in my ...
OK I've created a simple sample page for making NIP-96 uploads the way I am in my larger project. I've also included a variation that generates the Auth header differently (according to NIP-96 where it contradicts NIP-98).
Not sure what I'm doing wrong here...
https://github.com/Ademan/nip96-testYou can run it with
```
npx webpack serve -c webpack.dev.js
```
the "My version" checkbox activates the variant upload, rather than only using stock nostr-tools functions.
nostr.build (nprofile…v296) any ideas? To the extent I am able as a non-web dev who's very unfamiliar with modern PHP, reviewing the nostr.build source it wasn't obvious to me what is going wrong either.
quentin (nprofile…lwv4) I get approximately the same 400 response with nostrcheck, does anything jump out at you?
I appreciate any help y'all can give, and sorry for the noise. At least, if you're aware of clients that work with your nip96 endpoints specifically, I'd love to see them and compare...
Published at
2024-07-15 15:56:05Event JSON
{
"id": "d5325445cb921b4b502256bc701c15f330b54b9e2ec92a2ddfa92a55b591c69b",
"pubkey": "2cb30c36438bad4a2a5107bc98f5cebe6a0229b0554d8cfbd1c99aa3cc7ecec1",
"created_at": 1721058965,
"kind": 1,
"tags": [
[
"e",
"fdd97ba03bbd7c522fd31ccb159431815c839d7ab2a1e45805fb4f1a0a9f2ab1",
"wss://relay.damus.io/",
"root",
"2cb30c36438bad4a2a5107bc98f5cebe6a0229b0554d8cfbd1c99aa3cc7ecec1"
],
[
"e",
"aa6716b042dca197e674bd3e94c7056c112fce8ec220489cab89fab9c16159fa",
"wss://relay.damus.io/",
"reply",
"2cb30c36438bad4a2a5107bc98f5cebe6a0229b0554d8cfbd1c99aa3cc7ecec1"
],
[
"p",
"9989500413fb756d8437912cc32be0730dbe1bfc6b5d2eef759e1456c239f905",
"wss://nos.lol/",
"nostr.build"
],
[
"p",
"89e14be49ed0073da83b678279cd29ba5ad86cf000b6a3d1a4c3dc4aa4fdd02c",
"wss://relay.nostr.band/",
"quentin"
]
],
"content": "OK I've created a simple sample page for making NIP-96 uploads the way I am in my larger project. I've also included a variation that generates the Auth header differently (according to NIP-96 where it contradicts NIP-98).\n\nNot sure what I'm doing wrong here...\n\nhttps://github.com/Ademan/nip96-test\n\nYou can run it with\n\n```\nnpx webpack serve -c webpack.dev.js\n```\n\nthe \"My version\" checkbox activates the variant upload, rather than only using stock nostr-tools functions.\n\nnostr:nprofile1qy88wumn8ghj7mn0wvhxcmmv9uq3vamnwvaz7tmjv4kxz7fwd4hhxarj9ec82c30qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qgkwaehxw309ajkgetw9ehx7um5wghxcctwvshszythwden5te0dehhxarj9emkjmn99uq3wamnwvaz7tmjv4kxz7fwdehhxarj9e3xzmny9uq36amnwvaz7tmwdaehgu3wvf5hgcm0d9hx2u3wwdhkx6tpdshszymhwden5te0wp6hyurvv4cxzeewv4ej7qgawaehxw309ahx7um5wghx6at5d9h8jampd3kx2apwvdhk6tcpr9mhxue69uhhyetvv9ujuumwdae8gtnnda3kjctv9uqzpxvf2qzp87m4dkzr0yfvcv47qucdhcdlc66a9mhht8s52mprn7g9q9v296 any ideas? To the extent I am able as a non-web dev who's very unfamiliar with modern PHP, reviewing the nostr.build source it wasn't obvious to me what is going wrong either.\n\nnostr:nprofile1qythwumn8ghj7un9d3shjtnwdaehgu3wvfskuep0qyfhwumn8ghj7ur4wfcxcetsv9njuetn9uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcpz9mhxue69uhkummnw3ezuamfdejj7qgnwaehxw309ahkvenrdpskjm3wwp6kytcppemhxue69uhkummn9ekx7mp0qyghwumn8ghj7vf5xqhxvdm69e5k7tcprfmhxue69uhhyetvv9ujumn0wd68ycmgv43kktndv5hszxnhwden5te0dehhxarj9e6xsetnv9kk2cmpwshxjme0qqsgnc2tuj0dqpea4qak0qnee55m5kkcdncqpd4r6xjv8hz25n7aqtq3clwv4 I get approximately the same 400 response with nostrcheck, does anything jump out at you?\n\nI appreciate any help y'all can give, and sorry for the noise. At least, if you're aware of clients that work with your nip96 endpoints specifically, I'd love to see them and compare...",
"sig": "99f9ed9d863918f1b588d218e1cccb072710362ea860a2a899b4c121e406be2328a8043d9f2ec95a6c968247098ec8d1910f5f361be2bf0e39b783f1cdd16019"
}