logicalparadox / apnagent

Node.js adapter for Apple Push Notification (APN) Service.
http://logicalparadox.github.io/apnagent
216 stars 38 forks source link

TypeError: value is out of bounds #13

Open reidlai opened 10 years ago

reidlai commented 10 years ago

When I try to call apnagent.MockFeedback().unsub(token, new Date()), I got error "TypeError: value is out of bounds". What is the main reason for this error? Thanks.

logicalparadox commented 10 years ago

Hard to say without more details, but my guess is that the token you provided was not a valid one. Did you provide it as a string? If so, was it a valid hex string?

If that is not case please provide a full stack trace.