Enum ErrorCode
Error codes that may be returned by the Instant Games API
Namespace: Meta.InstantGames
Assembly: Unity.Meta.InstantGames.Sdk.dll
Syntax
public enum ErrorCode
Fields
Name | Description |
---|---|
ADS_FREQUENT_LOAD | Ads are being loaded too frequently. |
ADS_NOT_LOADED | Attempted to show an ad that has not been loaded successfully. |
ADS_NO_FILL | We were not able to serve ads to the current user. This can happen if the user has opted out of interest-based ads on their device, or if we do not have ad inventory to show for that user. |
ADS_TOO_MANY_INSTANCES | There are too many concurrent ad instances. Load and show existing ad instances before creating new ones. |
ANALYTICS_POST_EXCEPTION | The analytics API experienced a problem while attempting to post an event. |
ARENAS_NOT_FOUND | ARENAS_NOT_FOUND |
CAMERA_EFFECT_NOT_FOUND | CAMERA_EFFECT_NOT_FOUND |
CLIENT_REQUIRES_UPDATE | [Deprecated] - The client requires an update to access the feature that returned this result. If this result is returned on web, it means the feature is not supported by the web client yet. Deprecated in favor of CLIENT_UNSUPPORTED_OPERATION in v5.0 and above |
CLIENT_UNSUPPORTED_OPERATION | The client does not support the current operation. This may be due to lack of support on the client version or platform, or because the operation is not allowed for the game or player. |
DUPLICATE_POST | DUPLICATE_POST |
GAMING_SQUAD_NOT_FOUND | GAMING_SQUAD_NOT_FOUND |
GROUP_NOT_LINKED | GROUP_NOT_LINKED |
INVALID_OPERATION | The requested operation is invalid for the current game state. This may include requests that violate limitations, such as exceeding storage thresholds, or are not available in a certain state, such as making a context-specific request in a solo context. |
INVALID_PARAM | The parameter(s) passed to the API are invalid. Could indicate an incorrect type, invalid number of arguments, or a semantic issue (for example, passing an unserializable object to a serializing function). |
LEADERBOARD_NOT_FOUND | No leaderboard with the requested name was found. Either the leaderboard does not exist yet, or the name did not match any registered leaderboard configuration for the game. |
LEADERBOARD_WRONG_CONTEXT | Attempted to write to a leaderboard that's associated with a context other than the one the game is currently being played in. |
LIVE_MATCH_NOT_FOUND | LIVE_MATCH_NOT_FOUND |
LIVE_STREAMS_NOT_FOUND | LIVE_STREAMS_NOT_FOUND |
NETWORK_FAILURE | The client experienced an issue with a network request. This is likely due to a transient issue, such as the player's internet connection dropping. |
PAGE_NOT_LINKED | PAGE_NOT_LINKED |
PAYMENTS_NOT_INITIALIZED | The client has not completed setting up payments or is not accepting payments API calls. |
PAYMENTS_OPERATION_FAILURE | PAYMENTS_OPERATION_FAILURE |
PENDING_REQUEST | Represents a rejection due an existing request that conflicts with this one. For example, we will reject any calls that would surface a Facebook UI when another request that depends on a Facebook UI is pending. |
RATE_LIMITED | Some APIs or operations are being called too often. This is likely due to the game calling a particular API an excessive amount of times in a very short period. Reducing the rate of requests should cause this error to go away. |
SAME_CONTEXT | The game attempted to perform a context switch into the current context. |
TOURNAMENT_NOT_FOUND | TOURNAMENT_NOT_FOUND |
UNKNOWN | An unknown or unspecified issue occurred. This is the default error code returned when the client does not specify a code. |
USER_INPUT | The user made a choice that resulted in a rejection. For example, if the game calls up the Context Switch dialog and the player closes it, this error code will be included in the promise rejection. |
VIDEO_NOT_FOUND | VIDEO_NOT_FOUND |