Error Codes

Asleep.AsleepErrorCode

  • version>SDK: Usable before a specific SDK version, version<=SDK: Usable from a specific SDK version or higher
  • SDK Error Codes for Audio Input by Android OS Version
    • For Android OS versions 9 and below: If more than one app using the audio input feature is running, only the first app launched will receive audio input correctly. Subsequent apps will encounter an internal error at the point of audio input setup, and the SDK will deliver an ‘ERR_AUDIO’ error code.
    • For Android OS versions 10 and above: If more than one app using the audio input feature is running, the last app launched will receive audio input correctly. The previously launched apps will receive a ‘zero’ value in a ‘SILENCED’ state. The SDK will deliver an ‘ERR_AUDIO_SILENCED’ error code when it receives a ‘zero’ sound source. When it starts receiving the sound source correctly again, it will deliver an ‘ERR_AUDIO_UNSILENCED’ error code.

ErrorCodeDescriptionHandlingVersion
ERR_SETUP_INCOMPLETE10000Setup process is not completed.SDK Stop3.1.0
ERR_UNABLE_ODA10001ODA is unavailable.SDK Stop3.1.0
ERR_UNKNOWN11000UnknownSDK Stop
ERR_UNINITIALIZED11001Uninitialized SDKSDK Stop
ERR_MIC_PERMISSION11002No mic permissionClient Handling
ERR_AUDIO11003Android Audio ErrorSDK Stop
ERR_INVALID_URL11004Invalid URL FormatSDK Stop
ERR_AUDIO_SILENCED11005Recording Audio SilencedSDK Handling
ERR_AUDIO_UNSILENCED11006Recording Audio UnsilencedSDK Handling
ERR_INSUFFICIENT_STORAGE11008Insufficient storage (less than 200MB). It occurs only when saving recording files is used, and sleep tracking does not startClient Handling3.3.0
ERR_INVALID_PARAMETER11009The start time of the analysis range is later than or equal to the end time. Or recordingPath / recordingType was passed without a Completable listenerClient Handling3.3.0
ERR_COMMON_UNAUTHORIZED11401UnauthorizedSDK Stop
ERR_COMMON_EXPIRED11403Plan is expired | Rate limit exceeded | Quota exceededSDK Stop
ERR_COMMON_NOT_FOUND11404user not existSDK Stop
ERR_NETWORK11500HTTP 500 error | Network errorSDK Stop
ERR_PRODUCT_REGISTER_FAILED13000Temporary failure to register a Product. Network error, server error (5xx), too many requests (429). It is classified as a transient error, and depending on the path it may be the result after the SDK has retriedClient Handling3.3.0
ERR_PRODUCT_REGISTER_REJECTED13400Product registration rejected. Invalid parameter (400), unauthorized (401), no permission to register (403). The result is the same if you try againClient Handling3.3.0
ERR_INIT_FAILED21000Failed to initAsleepConfig | Network error occurred.Client Handling
ERR_INIT_SERVER_ERROR21500internal server errorClient Handling
ERR_CREATE_FAILED22000Failed to create a session | Network error occurred.SDK Stop
ERR_CREATE_UNAUTHORIZED22401Unauthorized | user_agent is emptyClient Handling
ERR_CREATE_CONFLICT22409The previous sleep session is not closed yet.SDK Stop
ERR_CREATE_VALIDATION22422Invalid session_start_time (YYYY-MM-DDTHH:mm:ssz) | Invalid parameterClient Handling
ERR_CREATE_SERVER_ERROR22500internal server errorSDK Stop
ERR_UPLOAD_FAILED23000Failed to upload | Network error occurred.SDK Handling
ERR_UPLOAD_BAD_REQUEST23400Invalid callback_url
or
audio format should be <sleep_session.sleep_sound_length> sec (16khz, 44.1khz, 48khz) (mp3, wav) under 10MB
or
cannot upload MELSPECTROGRAM file. only upload AUDIO file.
SDK Handling
ERR_UPLOAD_UNAUTHORIZED23401invalid customer uuid | user_agent is emptySDK Handling
ERR_UPLOAD_FORBIDDEN23403The session is already closed.SDK Stop
ERR_UPLOAD_NOT_FOUND23404The session does not exist.SDK Stop
ERR_UPLOAD_TOO_LARGE23413HTTP content length exceeded {size} bytes.SDK Handling
ERR_UPLOAD_UNPROCESSABLE23422Invalid parameter | Invalid seq_num (seq_num starts from 0)SDK Handling
ERR_UPLOAD_TRACKING_TERMINATED23499Unified all upload 4xx errors and deprecated individual upload error codesSDK Handling3.2.0
ERR_UPLOAD_SERVER_ERROR23500internal server errorSDK Handling
ERR_CLOSE_FAILED24000Failed to close a session | Network error occurred.Client Handling
ERR_CLOSE_UNAUTHORIZED24401Invalid customer uuidSDK Stop
ERR_CLOSE_FORBIDDEN24403The session is already closed.SDK Stop
ERR_CLOSE_BAD_REQUEST24400[WARNING] Invalid session end time. format(YYYY-MM-DDTHH:mm:ssz), must be less than session_start_timeSDK Stop
ERR_CLOSE_NOT_FOUND24404The session does not exist.SDK Stop
ERR_CLOSE_SERVER_ERROR24500internal server errorClient Handling
ERR_DELETE_FAILED25000Failed to delete a session | Network error occurred.Client Handling
ERR_DELETE_UNAUTHORIZED25401Invalid customer uuidClient Handling
ERR_DELETE_SERVER_ERROR25500internal server errorClient Handling
ERR_DELETE_USER_FAILED26000Failed to delete a customer uuid | Network error occurred.Client Handling
ERR_DELETE_USER_UNAUTHORIZED26401Invalid customer uuidClient Handling
ERR_DELETE_USER_SERVER_ERROR26500internal server errorClient Handling
ERR_SAVE_METADATA_FAILED27000Failed to save user metadata (network or server error, userId not set, SDK not initialized)Client Handling3.3.0
ERR_FETCH_METADATA_FAILED27100Failed to get user metadata (network or server error, userId not set, SDK not initialized)Client Handling3.3.0
ERR_SAVE_METADATA_VALIDATION27400The server rejected the metadata value (400). The reason is delivered in detailClient Handling3.3.0
ERR_COMPLETE_TIMEOUT28000The analysis completion was not confirmed within 30 seconds after the measurement ended. This is not a measurement failure and the session ends normally. Get the report after a whileClient Handling3.3.0
ERR_REANALYZE_FAILED30000Failed to reanalyze. Network error, no userId in AsleepConfigClient Handling3.3.0
ERR_REANALYZE_BAD_REQUEST30400Invalid analysis start or end timeClient Handling3.3.0
ERR_REANALYZE_UNAUTHORIZED30401Unauthorized to reanalyzeClient Handling3.3.0
ERR_REANALYZE_FORBIDDEN30403No permission to reanalyzeClient Handling3.3.0
ERR_REANALYZE_NOT_FOUND30404The session does not existClient Handling3.3.0
ERR_REANALYZE_CONFLICT30409Cannot reanalyze now (already being reanalysed, etc.). If it keeps occurring, the session may not be able to be reanalysed, so avoid retrying indefinitelyClient Handling3.3.0
ERR_REANALYZE_GONE30410The data retention period has expiredClient Handling3.3.0
ERR_REANALYZE_UNPROCESSABLE30422The session is still being measuredClient Handling3.3.0
ERR_REANALYZE_SERVER_ERROR30500Reanalyze server error (5xx)Client Handling3.3.0
ERR_ANALYSE_FAILED31000Failed to analyse | Network error occurred.Client Handling
ERR_ANALYSE_BAD_REQUEST31400The invalid timezone is providedClient Handling
ERR_ANALYSE_UNAUTHORIZED31401UnauthorizedClient Handling
ERR_ANALYSE_NOT_FOUND31404Unable to find the sleep session of id {session_id}Client Handling
ERR_ANALYSE_SERVER_ERROR31500internal server errorClient Handling
ERR_REPORT_FAILED32000Failed to report | Network error occurred.Client Handling
ERR_REPORT_BAD_REQUEST32400The invalid x-user-id is providedClient Handling
ERR_REPORT_UNAUTHORIZED32401UnauthorizedClient Handling
ERR_REPORT_NOT_FOUND32404Unable to find the sleep session of id {session_id}Client Handling
ERR_REPORT_SERVER_ERROR32500internal server errorClient Handling
ERR_REPORTS_FAILED33000Failed to reports | Network error occurred.Client Handling
ERR_REPORTS_BAD_REQUEST33400The invalid timezone is providedClient Handling
ERR_REPORTS_UNAUTHORIZED33401The API key is not provided.Client Handling
ERR_REPORTS_SERVER_ERROR33500internal server errorClient Handling
ERR_AVERAGE_REPORT_FAILED34000Failed to average report | Network error occurred.Client Handling
ERR_AVERAGE_REPORT_BAD_REQUEST34400The period should be less than or equal to 100 daysClient Handling
ERR_AVERAGE_REPORT_NOT_FOUND34404Unable to find the user of id {user_id}Client Handling
ERR_AVERAGE_REPORT_SERVER_ERROR34500internal server errorClient Handling

Definition for SDK Error Handling

Definition of SDK Segment Operation

  • Init (initAsleepConfig) : SDK Initialization State
  • Tracking (SleepTrackingManager): Audio recording environment and server communication protocol management for sleep monitoring
  • Report (Reports): Request sleep monitoring results

Error Case Definition

  • SDK Stop: Termination process within the SDK. The SDK needs to be restarted for a new start because it is terminated internally. Depending on the status of the SDK, the session and audio recording function are terminated by itself. You need to start from the "initAsleepConfig" request to activate the SDK
  • SDK Handling: The SDK updates the error internally and performs the next action. If you want to terminate after receiving an error, you need to handle it depending on the state of the SDK call. To terminate the SDK, you need to call stopTracking only in the Tracking state, and no separate processing is required in other sections
  • Client Handling: An error that needs to be handled by the client. Used for error checking during development.
  • Do not used: Error not in use in the current version.

Error Handling Classification

  • Indicate commonly occurring Error Codes in red. Error codes that are unlikely to appear should be struck through.
  • Added Error Code for Audio
  • ERR_AUDIO(11003): If the audio recording does not function properly due to an internal error at the setup stage, the ‘ERR_AUDIO’ error code is delivered.
  • ERR_AUDIO_SILENCED(11005): If the sound source being measured during audio recording is read as a ‘zero’ value, the ‘ERR_AUDIO_SILENCED’ error code is delivered.
  • ERR_AUDIO_UNSILENCED(11006): If the sound source being measured during audio recording recovers normally after the ‘ERR_AUDIO_SILENCED’ error code has been raised, the ‘ERR_AUDIO_UNSILENCED’ error code is delivered.

Did this page help you?