Recently a production app of mine began throwing exceptions due to some weird behavior with the grant/audit functions. To summarize, I can grant permissions to a channel/key combo and get a success response but when I audit the channel immediately afterwards it shows an empty channels result set. To rule out a bug in the application I verified this behavior in the pubnub developer console.
Grant Input/Output
RESPONSE:
{
"auths": {
"102cd0f27f216cc3ce7733e7a56ce1ae9e35407c": {
"r": 1,
"w": 0
}
},
"subscribe_key": "sub-c-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ttl": 0,
"channel": "32f563fcc122d2b0db5f133b0967bcd8",
"level": "user"
}
Audit Input/Output
RESPONSE:
{
"channels": {
},
"subscribe_key": "sub-c-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"level": "channel"
}
I would expect to see the permissions that were just granted in the audit. Am I missing something silly?
Thanks.