Skip to content

v2.11.3 "An error occurred while posting on nostr"Β #1148

@slfhstr

Description

@slfhstr

πŸ“œ 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

  1. add a nostr channel
  2. create a post
  3. post now
  4. UI says 'added successfully"
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions