nostril icon indicating copy to clipboard operation
nostril copied to clipboard

Error: couldn't add p tag if more than 32 -p tags

Open gourcetools opened this issue 2 years ago • 2 comments

Description:

I'm trying to use nostril to follow pubkeys from a list that i crafted, it's working fine with small numbers but breaks at some point. I'm using a command that look like that:

nostril --kind 3 --envelope --sec "$privkey" $contactlist | websocat "$relay"

$contactlist is a list of all pubkeys in hex format with a -p before like that. I'm aware that im supposed to add a relay and a name but i'm not here yet and this is not the issue. It's working fine with 32 contacts:

-p <hex-pubkey-1>
-p <hex-pubkey-2>
-p <hex-pubkey-3>
etc...

Everything is working fine with 1 to 32 contact or so. But at 32 or more it breaks. And return this error: couldn't add p tag I tried with multiple relays, it's not a relay issue or message size issue. If i can provide more informations, tell me what. I'd be happy to do so. Thanks

gourcetools avatar Feb 07 '23 20:02 gourcetools

https://t.me/nostr_protocol/89548 image

gourcetools avatar Feb 07 '23 21:02 gourcetools

What is the usage for --tags (plurals) ?

It still breaks after 32 -p tags exactly with error: couldn't add tag 'p'

gourcetools avatar Feb 07 '23 21:02 gourcetools