Error code: 40131 - Key revoked

If you see this error, it means that the Ably API key you've used to instance the library is no longer valid as it has been revoked by an admin of the application. 

 

Solving this error:

  • If you are an admin of the app, open up the DSN dashboard in your Ably account and go to the 'API keys' tab. Here, you'll find all the API keys currently valid for your application. Use one of these API keys instead of your current one or create a new API key with the necessary permissions and privileges and use that to instance the library.
  • If you are not an admin, request your admin to share a new API key with you, or if you are using Token Authentication, request your admin to share a token request created using the new API key.
  • If you are still unable to solve it, reach out to us and we'll be happy to help you out.