File Sharing
  • iOS : Objective-C
  • Android
  • Web
  • Electron
  • Windows
  • macOS
  • Overview
  • SDK Downloads
  • Demo APP
  • Sample Codes
  • Access Guide
  • Quick Starts
  • Scene Practices
  • Advanced Features
  • Error Codes
  • Server API
  • Documentation
  • File Sharing
  • Error Codes

Error Codes

Last updated:2022-03-22 13:06

Error Code Key Error Code Value Error Code Remarks
ZegoDocsViewSuccess 0 Successful execution.
Common Error Code Range
ZegoDocsViewErrorInternal 2000001 Internal error.
ZegoDocsViewErrorParamInvalid 2000002 Parameter error, please pay attention to the specific information output from the console.
ZegoDocsViewErrorNetworkTimeout 2000003 Network timeout.
File Upload Error Code
ZegoDocsViewErrorFileNotExist 2010001

The corresponding local file cannot be found. The possible reasons are:

  • Wrong file path was accessed during upload
  • The local file has been Delete
ZegoDocsViewErrorUploadFailed 2010002 Upload failed.
ZegoDocsViewErrorUnsupportRenderType 2010003 The rendering mode is not supported.
Format Conversion Error Code
ZegoDocsViewErrorFileEncrypt 2020001

The file that needs to be transcoded is encrypted. The possible reasons are:

  • Word file access requires a password.
  • Excel file access requires a password.
  • The PPT file access requires a password.
ZegoDocsViewErrorFileSizeLimit 2020002

The file content is too large. The possible reasons are:

  • Excel file size exceeds 10 MB
  • Text file size exceeds 2 MB
  • The size of other files exceeds 100 MB
ZegoDocsViewErrorFileSheetLimit 2020003

There are too many pages in the file. The possible reasons are:

  • The number of Excel file sheets exceeds 20
  • The number of Word files exceeds 500
  • The PowerPoint file has more than 500 pages
ZegoDocsViewErrorConvertFail 2020004 Format conversion failed.
ZegoDocsViewErrorConvertCancel 2020005 Format conversion was canceled.
ZegoDocsViewErrorFileContentEmpty 2020006

The content of the file is empty. The possible reasons are:

  • There is no content in the PDF file.
  • There are no slides in the PPT file.
  • There is no content in the Excel file.
  • There is no content in the Word document.
ZegoDocsViewErrorFileReadOnly 2020007

The file is in read-only mode. The possible reasons are:

  • The dynamic PPT file is set to read-only mode, which will cause the transcoding to fail.
  • The dynamic PPT file contains fonts that are not supported by the transcoding server, which will cause the transcoding to fail.
ZegoDocsViewErrorConvertElementNotSupported 2020008 There are elements in the source file that do not support transcoding.
ZegoDocsViewErrorConvertFileTypeInvalid 2020009 The file extension does not conform to the file specification defined by ZEGO.
SDK Interface Call
ZegoDocsViewErrorAuthParamInvalid 2030001 Authentication parameter error.
ZegoDocsViewErrorFilePathNotAccess 2030002

Insufficient path permissions, possible reasons are:

  • The log directory passed in during initialization is not available
  • The cache directory passed in during initialization Not available
  • The data directory passed in during initialization is not available
ZegoDocsViewErrorInitFailed 2030003 Initialization failed.
ZegoDocsViewErrorSizeInvalid 2030004 Please make sure to read the effective width and height of the current ZegoDocsView before calling loadFileWithFileID.
ZegoDocsViewErrorFreeSpaceLimit 2030005 Insufficient local space.
ZegoDocsViewErrorUploadNotSupported 2030006 File upload function is not supported.
ZegoDocsViewErrorUploadDuplicated 2030007 The same file is being uploaded.
ZegoDocsViewErrorEmptyDomain 2030008 Empty domain name.
ZegoDocsViewErrorHaveInit 2030009 Initialized.
ZegoDocsViewErrorServerFileNotExist 2030010

The corresponding transcoded file cannot be found. The possible reasons are:

  • When accessing the file, the wrong fileID was passed in, such as when the file was uploaded and the current A different AppID was used when accessing
  • The corresponding file has been deleted after transcoding
ZegoDocsViewErrorLogFolderNotAccess 2030011 The log directory set during initialization cannot be created or written.
ZegoDocsViewErrorCacheFolderNotAccess 2030012 The cache directory set during initialization cannot be created or written.
ZegoDocsViewErrorDataFolderNotAccess 2030013 The data directory set during initialization cannot be created or written.
ZegoDocsViewErrorCacheNotSupported 2030014

This file is not supported for preloading. Please contact ZEGO technical support. Possible reasons include:

  • Current AppID does not open this service.
  • This file does not currently support preloading.
ZegoDocsViewErrorCacheFailed 2030015

Pre-loading failed, possible reasons include:

  • Network failure caused pre-loading failure.
ZegoDocsViewErrorZipFileInvalid 2030016

Invalid ZIP file, possible reasons include:

  • Not a valid ZIP file.
  • The file is damaged.
ZegoDocsViewErrorH5FileInvalid 2030017

The invalid H5 file does not conform to the H5 file specification defined by ZEGO. Possible reasons include:

  • There is no index.html in the file.
H5 Bridge Layer Error Codes
ZegoBridgeErrorNotReady 10001 H5 will appear without calling getReady.
ZegoBridgeErrorParamInvalid 10002 Parameter error occurs when the parameters of the H5 calling script interface do not meet the requirements.
ZegoBridgeErrorRecordListLimit 10003 recordList byte length exceeds the limit, H5 call operation related interface causes the current page recordList to exceed the maximum length limit (the maximum length after base64 is 948 bytes).
ZegoBridgeErrorH5 10006 H5 Internal code execution error.
Page Directory