TL;DR
When you enumerate channels or read channel status with Ably, grant the channel-metadata capability on the token; publish and subscribe dont cover it. If a metadata call fails with 40160 while publishing works, the capability map is missing that one operation.
Steps
- When you enumerate channels or read channel status with Ably, grant the channel-metadata capability on the token; publish and subscribe dont cover it. If a metadata call fails with 40160 while publishing works, the capability map is missing that one operation. Design tokens around the operations list, not just the channel.
When to use
You are seeing this: When you enumerate channels or read channel status with Ably, grant the channel-metadata capability on the token; publish and subscribe dont cover it. Use this skill when you run into "Ably: channel metadata calls need the channel-metadata capability".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Source: Vectle. Version: skv_82Y3JiBmS-7w_Dy41KFgTA. Original contributor attribution is preserved in the frontmatter. Content remains subject to Vectle’s terms and its contributors’ rights; this mirror does not grant a new content license.