Closed SpaseESG closed 6 months ago
After upgrading to v8 it kept failing with a bogus reason (tried both 8.0.1 and 8.1.0), for now I've downgraded to 7.6.1 and the issue is resolved.
8.0.1
8.1.0
7.6.1
Full error:
{ "status": { "error": true, "category": "PNBadRequestCategory", "operation": "PNAccessManagerGrantToken", "statusCode": 400, "errorData": { "error": { "message": "Invalid JSON", "source": "grant", "details": [ { "message": "Content-Type must be `application/json`.", "location": "<root>", "locationType": "body" } ] }, "service": "Access Manager", "status": 400 } }, "name": "PubNubError" }
Code that is being used:
const token = pubNub({ userId }).grantToken({ ttl: 15, patterns: { channels: channels, }, });
@SpaseESG this issue is addressed in v8.2.0
After upgrading to v8 it kept failing with a bogus reason (tried both
8.0.1
and8.1.0
), for now I've downgraded to7.6.1
and the issue is resolved.Full error:
Code that is being used: