-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
π Description
Added a nostr channel in Postiz UI
But attempting to post generates error "An error occurred while posting on nostr"
A nostr client works for manual posting (i.e. account nsec etc is good)
π Reproduction steps
- add a nostr channel
- create a post
- post now
- UI says 'added successfully"
- notification shows An error occurred while posting on nostr
π Expected behavior
Post should complete and be sent to nostr relay
π Actual Behavior with Screenshots
notification shows An error occurred while posting on nostr
π» Operating system
Linux
π€ Node Version
Node.js v22.21.0.
π Provide any additional context for the Bug.
I tried putting the nsec in hex format but it is not accepted in UI update credentials
I added the nsec in the env file manually in hex format, plain and encapsulated in quotes
I restarted the app each attempt.
I wrote a small node .mjs script to test installation of the nostr-tools package.
I can post to nostr from the command line, but only if I specify the nsec and relay on the command line, e.g.
NOSTR_PRIVATE_KEY="nsec1xxxxxxx" NOSTR_RELAYS="wss://relay.damus.io" node /app/data/nostr-check.mjs
The same command without env variables node /app/data/nostr-check.mjs errors.
Is Postiz reading env vars correctly when sending event from UI ?
π Have you spent some time to check if this bug has been raised before?
- I checked and didn't find similar issue
Are you willing to submit PR?
None