Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Chinnawat Sirima · Sep 30, 2019 at 12:00 PM · CloudScriptapisPlayer Inventory

UnlockContainer and CloudScriptAPIRequestError

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?

Comment
Chanat
Jiranut Kittipassorn
Atid Puwatnuttasit

People who like this

3 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

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.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Chinnawat Sirima · Oct 01, 2019 at 09:00 AM 0
Share

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.

avatar image SethDu ♦ Chinnawat Sirima · Oct 04, 2019 at 09:03 AM 0
Share

What's the title ID and can you tell us which cloud script function you are calling?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    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

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges