Troubleshooting initialization errors
Solve common issues with LevelPlay SDK initialization.
Read time 4 minutesLast updated a day ago
These errors occur when the LevelPlay SDK fails to initialize properly. Without successful initialization, ads can't be requested, loaded, or shown. Use this page to quickly identify and fix issues that might occur when initializing the SDK. Initialization errors are returned through .
LevelPlayInitListener.onInitFailed(LevelPlayInitError)Symptoms
During initialization, the SDK returns the following error code and message:
[510] internal error
Cause
This error occurs when the SDK throws an unexpected exception while processing the initialization response.
Resolution
To resolve this error, do the following:
- Update to the latest LevelPlay SDK version.
- Wait for the SDK to retry. The SDK retries this error automatically, so you don't need to call again.
LevelPlay.init - If the error persists, capture logs and contact LevelPlay support with the full error message.
Symptoms
During initialization, the SDK returns the following error code and message:
[2010] App key is null
Cause
Common reasons for this error include:
- The app key passed to the init request is empty or null
- The app key contains a placeholder value
- The app key contains invalid characters or has the wrong length (it must be between 5 and 10 alphanumeric characters)
Resolution
To resolve this error, do the following:
- Copy the app key again from the LevelPlay dashboard and make sure it matches the platform.
- Verify the app key contains only English letters and numbers, and is between 5 and 10 characters long.
Symptoms
During initialization, the SDK returns the following error code and message:
[2070] noServerResponse
The SDK retries this error automatically.
Cause
Common reasons for this error include:
- Weak or no network connectivity
- Temporary server or gateway issue
- VPN or firewall blocking LevelPlay domains
Resolution
To resolve this error, do the following:
- Make sure the device has a stable internet connection and disable restrictive VPNs or firewalls.
- Wait for the SDK to retry. The SDK retries these failures automatically with exponential backoff, so you don't need to call again.
LevelPlay.init - If the error persists, capture logs and contact LevelPlay support.
Symptoms
During initialization, the SDK returns the following error code and message:
[2080] serverResponseIsNotValid
Cause
Common reasons for this error include:
- A truncated or modified response (for example, from a proxy, VPN, or captive portal)
- A temporary server issue
- An outdated SDK that doesn't support a newer response format
Resolution
To resolve this error, do the following:
- Disable proxies or VPNs that might change the response.
- Wait for the SDK to retry. The SDK retries this error automatically, so you don't need to call again.
LevelPlay.init - Update to the latest LevelPlay SDK version.
- If the error persists, capture logs and contact LevelPlay support.
Symptoms
During initialization, the SDK returns the following error code and message:
[2090] decryptionFailed
Cause
Common reasons for this error include:
- A corrupted or partial response
- A network layer altering the response body
Resolution
To resolve this error, do the following:
- Disable proxies or VPNs that might change the response.
- Update to the latest LevelPlay SDK version.
- Wait for the SDK to retry. The SDK retries this error automatically, so you don't need to call again.
LevelPlay.init - If the error persists, capture logs and contact LevelPlay support.
Symptoms
During initialization, the SDK returns the following error code and message:
[2100] noResponseKey
Cause
Common reasons for this error include:
- A malformed server response
- An intermediary returns an error page instead of the init response
Resolution
To resolve this error, do the following:
- Wait for the SDK to retry. The SDK retries this error automatically, so you don't need to call again.
LevelPlay.init - If the error persists, capture logs and contact LevelPlay support.
Symptoms
During initialization, the SDK returns the following error code and message:
[2110] Bad Request - 400
The LevelPlay servers reject the init request as a bad request (HTTP 400). The SDK doesn't retry this error.
Cause
Common reasons for this error include:
- An invalid app key
- An app key that doesn't exist in the LevelPlay dashboard
Resolution
To resolve this error, do the following:
- Verify the app key in the LevelPlay dashboard and make sure it matches the platform you are building.
- If the key is correct, capture logs and contact LevelPlay support.