HomeDocs
跳到主要内容

错误文案和错误码说明

统一格式

[error msg]: [业务字母代码]

  • navigateToOutsideBrowser url is empty: N001

  • navigateToOutsideBrowser url should startWith http or https: N002

  • navigateToOutsideBrowser open browser failed: N003

  • switchTab url is empty: N004

  • switchTab url is not supported: N005

存储

  • Data storage failed because of insufficient storage space: S001

Wifi

  • not init: W12000

  • wifi not turned on: W12005

  • not have location permission: W12007

  • system internal error: W12010

  • gps not turned on: W12006

  • connection timeout: W12003

  • password error Wi-Fi: W12002

  • this app already has listener:W12004

  • invalid ssid: W12008

TabBar

  • Parameter error: T10001

  • set tab item failed, it's not tab page: T10002

  • set tab item failed, please check config: T10003

  • load tab bar fail, app.json is not config handleTabBarLoad as manual: T10004

  • load tab bar fail, please check the config: T10005

  • load tab bar fail, The number of dynamic configurations is not between 2 and 5: T10006

TouchEvent

  • Parameter error: T11001

  • System view error: T11002

File System

  • parameter error: F10001

  • fail sdcard not mounted: F10002

  • bad file descriptor: F10003

  • fail the maximum size of the file storage limit exceeded: F10004

  • fail permission denied: F10005

  • fail file does not exist: F10006

  • fail no such file or directory: F10007

  • native buffer exceeds size limit: F10008

SaveAlbum

  • Failed saved image to album, unknown Error: SA001

  • Failed saved image to album, save failed: SA002

  • Failed saved image to album, download failed: SA003

  • Failed saved image to album, error path: SA004

  • Failed saved image to album, download result is empty: SA005

ChooseMedia

  • Failed choose image from album, unknowError: CM001

  • Failed choose image from album, no permission: CM002

  • Failed choose image from album, cencel select: CM003

PreviewImage

  • Failed preview image, parameter error: PI001

  • Failed preview image, no permission : PI002

  • Failed preview image, unknowError : PI003

  • Failed preview image, url is not a valid URL: PI004

  • Failed, ability has no support: N10001

TakeScreenshot

  • Failed, unknown error: TS10001

  • Failed, generate bitmap error: TS10002

Share

  • Parameter error: S10001

  • Share File Failed, no write permission : S10002

  • ShareContent is empty: S10003

  • Share Failed: S10004

ActionSheet

  • Parameter error: AS10001

  • type is not supported: AS10002

  • Invalid size, must be between MIN_SIZE and MAX_SIZE : AS10003

CompressImage

  • Parameter error: AS10001

  • Quality must be 0..100: CI10002

  • Original file not exists: CI10003

Vibrate

  • type is not supported: V10001

Recorder

  • Parameter error: A10001

  • Invalid sampleRate, sampleRate should be one of availableSampleRate: A10002

  • Invalid numberOfChannels, numberOfChannels should be one of availableChannels : A10003

  • Invalid encodeBitRate, encodeBitRate should be greater than min and less than max : A10004

  • Invalid format, format should be one of availableRecordingFormat : A10005

  • Invalid audioSource, audioSource should be one of availableAudioSources : A10006

  • Invalid duration, duration should be between 0 and maxDuration : A10007

  • Audio is recording, don't start record again : A10008

  • Audio is paused, pause record fail : A10009

  • create record file fail : A10010

  • Audio failed with permission denied : A10011

  • Audio is stop, don't stop record again : A10012

PreloadWebview

  • handleWebviewPreload type is not supported!: SP10001

  • Please configure handleWebviewPreload as manual.The current type is window.handleWebviewPreload: SP10002

PreloadAssets

  • Parameter error: PA10001

  • Type does not match: PA10002

  • Network is not connected: PA10003

  • Download Failed: PA10004

MiniAppUpdate

  • Parameter error: MAU10001

  • Requesting, please try later: MAU10002

  • The network is abnormal, please check the network: MAU10003

  • AppInfo request failed, please try again later: MAU10004

  • There is no App update content, please use forceUpdateAppInfo to check first: MAU10005

  • Downloading, please try later: MAU10006

  • Failed to download the applet package, please try later: MAU10007

  • There is no latest applet package to upgrade: MAU10008

Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.