Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/pages/docs/platform/errors/codes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ Examples of this error include attempting to use [channel objects](/docs/liveobj
Resolution: The following steps can help resolve this issue:
* Upgrade the Ably SDK to a version that supports the requested operation.

## 40025: Unsupported SDK API <a id="40025"/>

This error occurs when an SDK method is called using an API shape that is no longer supported.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically API shape, or just "a version of the API"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm leaning towards shape because "version of the API" implies we're talking about deprecated versions and not individual deprecated APIs (which this error code can also apply to)


An example of this error is calling an ably-js v2 method using the v1 Node-style callback signature. The v2 SDK is Promise-based and no longer accepts a trailing callback argument. See the [ably-js v2 migration guide](https://github.com/ably/ably-js/blob/main/docs/migration-guides/v2/lib.md) for details on migrating from v1 callbacks to Promises.

Resolution: Update the call site to use the supported API for your SDK and version.

## 40030: Invalid publish request (unspecified) <a id="40030"/>

This error occurs when a [publish request](/docs/pub-sub#publish) is malformed.
Expand Down