asterisk / node-ari-client

Node.js client for ARI. This library is best effort with limited support.
Other
250 stars 98 forks source link

channel.hangup returning truthy empty object "{}" for error #87

Closed dougbtv closed 7 years ago

dougbtv commented 7 years ago

I'd see it here using the demo tt-monkeys app: https://gist.github.com/dougbtv/bef8c442f47c432147ffd9c511d435ca

Then I traced it out a big, and I found that...

      channel.hangup(function(err) {
        console.log(typeof err);
      }

would give me...

object

fwiw, thought I'd note it here.

dougbtv commented 7 years ago

...I was wrong, closing. It has an error in that object, but bunyan wasn't printing it properly.