PICO Unity Platform SDK
ErrorCode

Common

Error Code Message Description
0 success The request succeeded.
10001 lost parameter The required parameter(s) are missing.
10002 invalid parameter The parameter(s) are invalid.
10003 call internal service failed, please try again Failed to call the internal service, please try again.
10004 operate mysql failed Failed to operate MySQL.
10005 operate redis failed Failed to operate Redis.
10006 invalid signature The signature is invalid.
10007 operate byte graph failed Failed to operate ByteGraph.
10008 not login The user has not logged in.
10009 not found anything Nothing was found.
10010 not auth Not authorized.
10011 record is exist The record already exists.
10012 internal error Internal error.
10013 invalid user The user ID is invalid.
10014 parameters is too long The parameter is too long.
10015 service is disabled The service has been disabled.
10016 frequent request Too many requests.
10017 body data must be JSON format The body data must be in JSON format.
10018 invalid token The login token is invalid.
10019 token expired The login token has expired.
10020 not found auth app No authorized app was found.
19999 unknown error Unknown error.
-100001 / Invalid appKey.
-100002 user no login The user has not logged in.
-100003 request is null The request body is null.
-100004 / Unknown error.
-100005 request bytes data parse error An error occurred while parsing the request.
-100006 cmd not support Invalid command. The current version of SDK does not include this API or does not support it.
-100007 have no this api permission No permission to access this API.
-100008 undefined Invalid request parameter.
-100009 device id is empty The device ID (DID) of a registered device is null. If the DID is null, the login event will be blocked.
-100010 the request of xxx occurs exception: xxx An exception occurred when requesting service API. This can be caused by local exception or network exception.
-100011 SDK not initialized Platform services have not been initialized, unable to call API.
-100012 Network is unavailable. Nerwork not avialeble for the device.
-100013 Common network request is failed Failed to request common network, which usually happens when the server returns a failure or an exception.
-100015 Parse Server Response Failed Failed to parse the response.

Accounts & Friends

Error Code Message Description
10100 is not friend The two users are not friends.
10101 user is in opposite deny list The current user is in the target user's danylist.
10102 is friend already The two users are already friends.
10103 invalid apply info The friend request is invalid.
10104 has no permission No permission to call this API.
10105 can not add itself be friend Unable to add yourself as a friend.
10106 user is in own deny list The target user is in the current user's denylist.
10107 reach max friends count limit No more friends can be added.
10108 can not send request to another application Sending friend requests to a different app is not allowed.
10109 send im message fail Failed to send IM message.
-10000 / An exception occurred when acquiring the access token.
-10001 user cancel auth The user cancelled authorization.
-10002 user cancel login The user cancelled login.
-10003 user is logining The user is loggin in.
-10004 user is not login The user has not logged in.
Note: If the API that silently obtains the access token during initialization returns this error code, it will not affect the subsequent functionality and no concern is needed.
-10005 user is not auth The user has not given authorization.
Note: Only the API that silently obtains the access token during initialization will return this error code, it will not affect the subsequent functionality and no concern is needed.

Room & Matchmaking & Leaderboard & Achievement

Error Code Message Description
10300 room is not exist Room does not exist.
10301 no auth for game service The Matchmaking service on the PICO Developer Platform is not enabled for the app.
10302 key duplicate in datastore Duplicate key in datastore.
10303 key is too long The length of the datastore's key is too long.
Note: The maximum length allowed for a datastore key is 32 bytes.
10304 value is too long The length of the datastore's value is too long.
Note: The maximum length allowed for a datastore value is 64 bytes.
10305 too many entries Too many entries in the datastore.
Note: The maximum number of entries allowed for a datastore is 2,000.
10306 invalid filter The `filter` parameter's setting is invalid.
10307 invalid start_at The `startAt` parameter's setting is invalid.
10308 empty offset The `offset` parameter is empty.
10309 invalid offset The `offset` parameter's setting is invalid.
10310 invalid summary The `summary` parameter's setting is invalid.
10311 invalid limit The `limit` parameter's setting is invalid.
10312 leaderboard is not exist The leaderboard does not exist.
10313 empty locale title The locale title is empty.
10314 error locale Locale error.
10316 empty user ids The `userIDs` parameter is empty.
10317 invalid leaderboard entry id The entry ID is invalid.
10318 invalid leaderboard id The leaderboard ID is invalid.
10319 no write permission No permission to write entries to the leaderboard.
Note: If you set `SERVER_AUTHORITATIVE` when creating the leaderboard, only the server is allowed to write entries.
10320 extra data too long The length of extra data is too long.
Note: The maximum length allowed for extra data is 2048 bytes.
10321 get friend list failed Failed to get the current user's friend list.
10322 get user account failed Failed to get the current user's account information.
10323 get destination failed Failed to get destination information.
10324 no next entries No entries on the next page.
10325 no previous entries No entries on the previous page.
10326 out of write time limit The time is out of the write time limit which is set by `earliest_allowed_entry_time` and `latest_allowed_entry_time`.
10327 save data to database failed Failed to save data.
10328 load data from database failed Failed to load data.
10329 object is not exist The object does not exist.
10330 object already exist The object already exists.
10331 data out of range No more leaderboards can be added.
Note: The maximum number of leaderboards allowed is 5,000.
10332 leaderboard entry is not exist The leaderboard entry does not exist.
10334 extra data is invalid `extraData` parameter is invalid。
10341 achievement is not exist The achievement does not exist.
10342 achievement is already exist The achievement already exists.
10344 no write permission No permission to write data to the achievement.
Note: If you set `SERVER_AUTHORITATIVE` when creating the achievement, only the server is allowed to write entries.
10345 extra data is too long The length of extra data is too long.
Note: The maximum length allowed for extra data is 2048 bytes.
10346 invalid api name The API name is invalid.
10347 invalid locale title The locale title is invalid.
10348 invalid locale description The locale description is invalid.
10349 invalid locale unlocked description The locale achievement-unlocking description is invalid.
10350 invalid bitfield length The bitfield length is invalid.
10351 the number of achievement reach max limit No more achievements can be added.
10352 invalid target The target for unlocking the achievement is invalid.
Note: For count achievements, the target must be greater than 0; for bitfield achievements, the target should be no more than 2,000.
10353 achievement is unreleased The achievement is not released.
10354 achievement is archived The achievement has been archived.
10355 achievement is unlocked The achievement has been unlocked.
10703 checking parameter failed Failed to verify parameters.
10704 leaderboard is not exist The leaderboard does not exist.
10705 no write permission No permission to write data to the leaderboard.
Note: If you set `SERVER_AUTHORITATIVE` when creating the leaderboard, only the server is allowed to write entries.
10706 load leaderboard data failed Failed to load leaderboard data.
10707 save leaderboard data failed Failed to save leaderboard data.
10708 extra data too long The length of extra data is too long.
Note: The maximum length allowed for extra data is 2048 bytes.
10709 get friend failed Failed to get the current user's friend list.
10710 get user account failed Failed to get the current user's account information.
10711 get destination failed Failed to get destination information.
10712 no next entries No entries on the next page.
10713 no previous entries No entries on the previous page.
10714 out of write time limit The time is out of the write time limit which is set by `earliest_allowed_entry_time` and `latest_allowed_entry_time`.
10715 leaderboard entry is not exist The API name passed in the request is not configured on the PICO Developer Platform.
10720 achievement is not exist The achievement does not exist.
10721 invalid request Verifying parameters failed.
10722 no write permission No permission to write data to the achievement.
10723 load achievement data failed Failed to load achievement data.
10724 save achievement data failed Failed to save achievement data.
10725 extra data too long The length of extra data is too long.
Note: The maximum length allowed for extra data is 2048 bytes.
10726 achievement is unreleased The achievement is not released.
10727 achievement is archived The achievement has been archived,
10728 achievement is unlocked The achievement has been unlocked.
10731 invalid field The `fields` parameter's setting is invalid.
10733 invalid count The `count` parameter's setting is invalid.
10734 operation is not allowed on the type This operation is not allowed by this type of achievement.
10735 invalid extra data The extra data is invalid.
10736 invalid parameter Invalid parameter.
10900 Invalid ID. Invalid challenge ID.
10901 Invalid App ID. App ID error.
10902 Failed to verify parameters. Failed to verify parameters.
10903 The challenge config does not exist. The challenge does not exist.
10904 Config already exist. The challenge already exsits.
10905 Failed to load challenge data. Failed to load challenge data.
10906 Failed to save challenge data Failed to save challenge data.
10907 Failed to delete challenge data. Failed to delete challenge data.
10908 Failed to get the current user's account information. Failed to get the current user's information.
10909 Failed to get the current user's friend list. Failed to get the current user's friend list.
10910 User not invited. The current user is not invited.
10911 User not participant. The current user does not participate in the challenge.
10912 Aready participanted. The current user has already participated in the challenge.
10913 Have no permission. No permission.
10914 Already invited. The current user has been invited.
10915 Already accept invite. The current user has accepted the invitation.
10916 The invitation does not exist. The challenge invitation does not exsit.
10917 Only could invite friends. The two users are not friends.
10918 Send IM message. Failed to send notifications.
10919 Challenge is not active. The challenge is not active.
10920 Exceed max create num. No more challenges can be added.
10921 Leaderboard not active. The leaderboard is not available.
10922 The title is illegal. Invalid challenge title.

Interaction

Error Code Message Description
10200 not set presence No presence is set for the user.
10201 invalid destination The destination is invalid.
10202 destination is disabled The destination has not been enabled.
10203 invalid app package name The app package name is invalid.
110004 no offer in this region The app is not available in the current region.
-10400 undefined The "Friends" app is not installed.
-10401 need update IM App version The "Friends" app's version is too low and an update is needed.
-10402 network error Network error.
-10403 user cancel The user cancelled the invitation.
-10404 server error Server error.
-10405 not login The user has not logged in.
-10406 callback exception An exception occurs when matrix is callbacked. Please try again later.
-10410 network error Network error.
-10411 user cancel The user cancelled the friend request.
-10412 server error Server error.
-10414 not login The user has not logged in.
-10420 callback exception An exception occurs when matrix is callbacked. Please try again later.
-10420 unknown error Unknown error.
-10421 Share App not installed The "Share" app is not installed.
-10422 need update Share App version The "Share" app's version is too low and an updated is needed.
-10423 user cancel The user cancelled this share.
-10424 not login The user has not logged in.
-10426 auth failed Failed to authorize.
-10427 network error Network error.
-10428 publish failed Failed to publish.
-10429 no more than 30 picture The number of pictures to share exceeded 30.
-10430 illegal params Parameter exception.
-10431 callback exception An exception occurs when matrix is callbacked. Please try again later.
-10440 cannot get the store version Failed to get store version.
-10441 store version is less than minimum support The store version is eariler than the supported version.
-10442 exception occurred when launch store An exception occurs when directing to the store.
-10443 unknown error An unknown error occurrs when directing to the store.

IAP & DLC & Subscription

Error Code Message Description
10500 not found sku The specified SKU was not found.
10501 set pay failed on SKU Payment failure has been set for the product with this SKU.
Note: This setting is designed for you to test payment failures, thereby making it easier for you to deal with potential relevant exceptions.
10502 item cannot consumed The product cannot be consumed.
10503 has no entitlement The product was not purchased.
10600 app need update The app needs to be updated.
10601 asset file not found No asset file was found.
10602 no available dlc for device No available DLC for the device.
110801 You can't change the plan because the subscription amount is being deducted The subscription is in debit and you cannot switch subscription plan and payment method.
110802 The subscription doesn't exist The subscription does not exist.
110803 The payment method is not supported in the region where the subscription was created.
110804 You've already purchased the subscription The subscription has already been purchased.
110806 A subscription is in effect, please cancel it first.
110808 The subscription status has changed. Try again later. The subscription status has changed, please refresh.
110809 The price has changed. Try again later. The subscription price has changed, please refresh and try again.
-10200 the purchase request is ignored because other purchase is processing. Other payment requests are currently being processed, unable to process this request.
-10201 Payment timed out. Payment timeout. This is generally caused by consume API retry failure.
-10202 the purchase flow is terminated because user exits. User-initiated exit from the payment process.
-10203 the free space for download is not enough
when start to download.
Insufficient available storage space to download the DLC.
-10204 the bound pay channel list is empty when the pay button is clicked. The payment channel is empty when the payment button is clicked. It happens usually when the user has not bound a payment channel.

RTC

Error Code Message Description
-1000 invalid token The room token is invalid.
-1001 Unknown error Unknown error.
-1002 No permission to publish audio stream. No permission to publish audio streams.
-1003 No permission to subscribe audio stream. No permission to subscribe audio streams.
-1004 A user with the same user Id joined this room. You are kicked out of the room. A user with the same UserId joins the room and the current user is therefore removed from the room.
-1005 Invalid config in the platform. RTC config error. Please check if RTC is enabled on the PICO developer platform.
-1007 no available dlc for device No DLC is available on the current device.
-1009 Token expired. Token expires and the user is removed from the room.
-1010 Invalid token when you call `UpdateToken` The Token passed in when calling the `UpdateToken` is invalid.
-1011 Room is dissmissed. The room is destroyed and all users are removed from the room.
-1070 SubscribeStream failed. Failed to subscribe the target audio stream because the streaming subscription exceeds the limit.
Note: The maximum number of streaming subscription allowed is 50.

Exercise data authorization

Error Code Message Description
-10500 undefined An unkown error occurred when acquring the exercise data. The logs are required for cause analysis.
-10501 undefined Invalid parameter, for example, the time range you set is invalid.
-10502 need update version The "Sport Center" is too low and an update is needed.

Sensitive word detection

Error Code Message Description
10400 unsupported scene The scene does not support sensitive word detection.