Skip to content

iOS error codes

tom-win87 edited this page Dec 20, 2023 · 2 revisions

iOS error codes

In the table below, please find possible errors codes that you may encounter while implementing Sourcepoint for iOS:

SPError class Code Description
sp_metric_generic_sdk_error Something went wrong with the SDK
UnableToFindView sp_metric_unable_to_find_view SDK unable to find the view with the specified ID
UnableToLoadJSReceiver sp_metric_unable_to_load_jsreceiver SDK unable to load (or inject) the Javascript interface into the webview
WebViewError sp_metric_web_view_error Webview error handler
InvalidPropertyNameError sp_metric_invalid_property_name Property name not valid
MissingChildPmIdError sp_log_child_pm_id_custom_metrics SDK called loadPrivacyManager for a campaign with useGroupPmIfAvailable = true. ID (usedId) was used. Child PM ID is missing
InvalidEventPayloadError sp_metric_invalid_event_payload The event payload coming from the webview is invalid
InvalidOnActionEventPayloadError sp_metric_invalid_onAction_event_payload Event payloads are not expected onAction
InvalidURLError sp_metric_invalid_url URL cannot be constructed
RenderingAppTimeOutError sp_metric_rendering_app_timeout Something went wrong while loading the Rendering App. onMessageReady was not called within the specified timeout
UnableToInjectMessageIntoRenderingApp sp_metric_unable_to_stringify_msgJSON SDK could not convert the message into JSON
InvalidResponseGetMessagesEndpointError sp_metric_invalid_response_api\(InvalidResponsAPICode.MESSAGES.code) SDK got an unexpected response from /get_messages endpoint
InvalidGetMessagesParams sp_invalid_get_messages_param Request params to /messages endpoint are invalid
InvalidResponseMessageGDPREndpointError sp_metric_invalid_response_message_gdpr SDK received an unexpected response from /message/gdpr endpoint
InvalidResponseMessageCCPAEndpointError sp_metric_invalid_response_message_ccpa SDK received an unexpected response from /message/ccpa endpoint
InvalidResponseGDPRPMViewEndpointError sp_metric_invalid_response_privacy_manager_view_gdpr SDK received an unexpected response from /consent/tcfv2/privacy-manager/privacy-manager-view endpoint
InvalidResponseCCPAPMViewEndpointError sp_metric_invalid_response_privacy_manager_view_ccpa SDK received an unexpected response from /ccpa/privacy-manager/privacy-manager-view endpoint
InvalidResponseConsentError sp_metric_invalid_response_consent SDK received an unexpected response from /consent endpoint
InvalidResponseCustomError sp_metric_invalid_response_custom_consent SDK received an unexpected response from /custom-consent endpoint
InvalidResponseDeleteCustomError sp_metric_invalid_response_delete_custom_consent SDK received an unexpected response from /consent/tcfv2/consent/v3/custom/ endpoint
NoInternetConnection sp_metric_no_internet_connection The device is not connected to the internet
WebViewConnectionTimeOutError sp_metric_webview_connection_timeout Timed out when loading webview after {x} seconds
InvalidResponseAPIError sp_metric_invalid_response_api\(apiCode.code)_\(statusCode) Response from API invalid
PostingConsentWithoutConsentUUID sp_metric_invalid_consent_UUID Tried to post consent but the stored consentUUID is empty or nil. Make sure to call .loadMessage or .loadGDPRPrivacyManager or loadCCPAPrivacyManager.
InvalidMetaDataQueryParamsError sp_metric_invalid_meta_data_query_params Invalid params in request
InvalidMetaDataResponseError sp_metric_invalid_response_api\(InvalidResponsAPICode.META_DATA.code) Unexpected meta data response
InvalidConsentStatusQueryParamsError sp_metric_invalid_consent_status_query_params Invalid params in request
InvalidConsentStatusResponseError sp_metric_invalid_response_api\(InvalidResponsAPICode.CONSENT_STATUS.code) Unexpected consent status response
InvalidPvDataResponseError sp_metric_invalid_response_api\(InvalidResponsAPICode.PV_DATA.code) Unexpected Pv data response
InvalidChoiceAllParamsError sp_metric_invalid_choice_all_query_params Invalid params in request
InvalidChoiceAllResponseError sp_metric_invalid_choice_all_response Unexpected Choice All response
UnableToConvertConsentSnapshotIntoJsonError sp_metric_error_converting_consent_snapshot_to_json For tvOS, cannot render user consent data on screen
InvalidJSONEncodeResult sp_metric_error_invalid_JSON_encode_result For tvOS, cannot render message content on screen