Skip to content

SDK 1.2.1 Protocol Reference

This document lists the error codes and their meanings returned by the SDK in version 1.2.1. When an SDK method call (such as loadShareById) fails, you can inspect the code property on the caught error object.

Error Code Reference

CodeDescription
EMBED_LOAD_SHARE_FAILEDFailed to load the remote share ID. Check whether the share ID exists and the network connection.
EMBED_LOAD_FILE_FAILEDFailed to inject FileContentV10 content. Verify that the JSON format conforms to the spec.
EMBED_SWITCH_SLIDE_FAILEDFailed to switch slide.
EMBED_INVALID_SLIDE_INDEXInvalid slide index. Typically means the index exceeds the total slide count.
EMBED_INVALID_REPL_COMMANDInvalid or empty REPL command.
EMBED_UNKNOWN_METHODThe current version of the embedded page does not support this operation.
EMBED_IFRAME_NOT_READYCanvas not yet ready. Call APIs only after the ready event fires.
EMBED_TIMEOUTRequest timed out (default 30 s).