You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs say: "message() sends a message to Pushover and returns a scalar reference representation of the message status." By testing it I found that it's actually a hash reference. More importantly, the Pushover api docs mention checking for 500's (https://pushover.net/api#friendly) and I cannot see how to do that with this tool. Ideas?
The text was updated successfully, but these errors were encountered:
the bad news is that i can't immediately see an easy way for you to inspect the HTTP response code; that is hidden under several layers of abstraction. however, the good news is that iirc a 500 response will not include valid JSON, which means the JSON parser will fail to decode it, and then it will croak. you can run message() inside an eval and inspect the return value to see if it succeeded.
The docs say: "message() sends a message to Pushover and returns a scalar reference representation of the message status." By testing it I found that it's actually a hash reference. More importantly, the Pushover api docs mention checking for 500's (https://pushover.net/api#friendly) and I cannot see how to do that with this tool. Ideas?
The text was updated successfully, but these errors were encountered: