I got an error when I UnlockContainerItem
apiError\":{\"code\":503,\"status\":\"ServiceUnavailable\",\"error\":\"Temporary storage issue, please retry request\",\"errorCode\":1113,\"errorMessage\":\"Temporary storage issue, please retry request\",\"errorHash\":\"f4bd47b659b9c6ada46ca070ec688192\",\"errorDetails\":null
Although my client got this error, back-end still proceeded to unlock container and added items to inventory.
This process should be stopped but it's not.
Could you suggest me to handle this error and give me the best practice solution for unlocking multiple containers?
Answer by SethDu · Oct 01, 2019 at 08:24 AM
How many item instances you are trying to unlock for each run? There are few possible reasons for it. For example, API number limits for each cloud script functions, execution time out.
If you are trying to unlock the same items for multiple times, we suggest you simply grant the items inside the container/bundle once, then modify their remaining uses, then revoke the container/bundle. Iteratively calling APIs to unlock is not recommended.
My project uses "loot box" model. My loot box is a container that contains a lot of "DropTable". and I set the limit for client to unlock container only 10 times for 1 calling of cloud script functions.
Based from function's log, it returns only "APIRequestsIssued": 12
that means API couldn't reach the limit which is 25 APIRequestsIssued.
What's the title ID and can you tell us which cloud script function you are calling?
Getting item,How to get ItemInstanceId in GrantItemsToUse 1 Answer
CloudScript check user VC before subtracting? 1 Answer
Finding out what item a coupon code is generated for, 1 Answer
GrantItemsToCharacter results in Internal Server Error 1 Answer
How to delete Cloud Script Revision using Admin API? 3 Answers