Closed sroertgen closed 1 year ago
The error seemed to stem from a missing environment variable SECRET
, which is by now mandatory.
After adding that everything works as expected.
:tada: This issue has been resolved in version 1.23.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Describe the bug With the current version (commit https://github.com/Cameri/nostream/commit/fb6948fd83ca87ce552f39f9b5eb780ea07e272e) nostream is not accepting events. Sending a simple event with
nostr-tools
gives no response. Requesting events works as expected though.Switching to commit https://github.com/Cameri/nostream/commit/f23740073f6b59b230157528376a89ca44af3f27 solves the issue. Everything works as expected.
To Reproduce Steps to reproduce the behavior:
const relay = relayInit('wss://example.com') let privateKey = 'xxx'
relay.on('connect', () => { console.log(
connected to ${relay.url}
) }) relay.on('error', () => { console.log(failed to connect to ${relay.url}
) })await relay.connect()
let event = { kind: 1, created_at: Math.floor(Date.now() / 1000), tags: [], content: 'Hello world! This is a test', pubkey: getPublicKey(privateKey) }
event.id = getEventHash(event) event.sig = signEvent(event, privateKey)
let pub = relay.publish(event) pub.on('ok', () => { console.log(
${relay.url} has accepted our event
) }) pub.on('failed', reason => { console.log(failed to publish to ${relay.url}: ${reason}
) })