Troubleshooting initialization errors
Solve common issues with LevelPlay initialization.
Read time 5 minutesLast updated 17 hours ago
These errors occur when LevelPlay 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 LevelPlay. LevelPlay returns initialization errors through the event.
LevelPlay.OnInitFailedSymptoms
During initialization, LevelPlay returns the following error code with one of the following messages, depending on the platform:
[510] internal error (Android)[510] [exception description] (iOS)
Cause
This error occurs when LevelPlay throws an unexpected exception during initialization.
Resolution
To resolve this error, do the following:
- Update to the latest LevelPlay Unity package.
- If the error persists, capture logs and contact LevelPlay support with the full error message.
Symptoms
During initialization, LevelPlay returns the following error code and message:
[520] Init Fail - No Internet connection
Cause
The device has no internet connectivity.
Common reasons for this error include:
- The device is offline or in airplane mode
- The device has no network access
Resolution
To resolve this error, do the following:
- Connect the device to the internet.
- Wait for LevelPlay to retry. LevelPlay detects when the connection returns and retries initialization automatically, so you don't need to call again.
LevelPlay.Init()
Symptoms
During initialization, LevelPlay returns the following error code with one of the following messages, depending on the platform:
[2010] App key is null (Android)[2010] App key is not valid (iOS)
Cause
Common reasons for this error include:
- The app key passed to is empty or null
LevelPlay.Init() - 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 pass it to init.
- Make sure the app key matches the platform you're building.
- Verify the app key contains only English letters and numbers, and is between 5 and 10 characters long.
// Pass the app key from the LevelPlay dashboard.LevelPlay.Init("your_app_key");
Symptoms
During initialization, LevelPlay returns the following error code with one of the following messages, depending on the platform:
[2070] noServerResponse (Android)[2070] Init Fail - Unable to retrieve configurations from the IronSource server. Response contains errors. (iOS)[2070] Init Fail - Unable to retrieve configurations from the IronSource server. Connection Error [code] (iOS connection failure)
For the iOS connection failure message, is the iOS network error code (for example, -1001 for a timeout).
[code]LevelPlay 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 LevelPlay to retry. LevelPlay 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, LevelPlay returns the following error code with one of the following messages, depending on the platform:
[2080] serverResponseIsNotValid (Android)[2080] Init Fail - Unable to retrieve configurations from the IronSource server. Response contains errors. (iOS)
On iOS, 2080 also means the LevelPlay servers reject the init request (for example, because the app key is invalid), which LevelPlay doesn't retry. On Android, a rejected request returns 2110.
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 LevelPlay Unity package that doesn't support a newer response format
- On iOS, an invalid app key
Resolution
To resolve this error, do the following:
- Disable proxies or VPNs that might change the response.
- Wait for LevelPlay to retry. LevelPlay retries an invalid response automatically, so you don't need to call again.
LevelPlay.Init() - Update to the latest LevelPlay Unity package.
- On iOS, if the error persists, verify the app key in the LevelPlay dashboard.
- If the error still persists, capture logs and contact LevelPlay support.
Symptoms
During initialization, LevelPlay returns the following error code with one of the following messages, depending on the platform:
[2090] decryptionFailed (Android)[2090] Response decryption failed (iOS)[2090] Response decryption not a JSON (iOS)
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 Unity package.
- Wait for LevelPlay to retry. LevelPlay 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, LevelPlay returns the following error code with one of the following messages, depending on the platform:
[2100] noResponseKey (Android)[2100] No response key (iOS)
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 LevelPlay to retry. LevelPlay 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, LevelPlay returns the following error code and message:
[2110] Bad Request - 400
The LevelPlay servers reject the init request as a bad request (HTTP 400). LevelPlay doesn't retry this error. On iOS, the same failure returns 2080.
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're building.
- If the key is correct, capture logs and contact LevelPlay support.