nostrver-se / nostr-php

PHP helper library for Nostr https://nostr-php.dev
https://nostr-php.dev
MIT License
53 stars 15 forks source link

CommandResult is not always the array we expect #18

Closed swentel closed 2 months ago

swentel commented 1 year ago

e.g.

["NOTICE","invalid: \"pubkey\" is required"] So check that in Relay::send()

swentel commented 1 year ago

A success call crashes too with this one though, so let's check what exactly changed before #14

swentel commented 1 year ago

Ok, fixed the response in Relay, that was already broken, but let's make sure we don't fatal here and catch other responses from the relay too.

Sebastix commented 2 months ago

Closing this issue, see https://github.com/nostrver-se/nostr-php/pull/60