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 Chanda Yadav · Jan 05 at 02:12 AM ·

/Client/GetUserInventory: HTTP/1.1 409 Conflict b__1(PlayFabError)

I have feature in my game where player have facility to buy moves. In that feature two method get called IAPManager.Instance.BuyConsumable and after success purchase PlayFabClientAPI.GetUserInventory get called. This was working fine before but when i have given build on iOS its hang the game after adding moves to game and after debug i get error /Client/GetUserInventory: HTTP/1.1 409 Conflict

Projectpath<>c__DisplayClass86_0:<FetchPlayerInventory>b__1(PlayFabError).

Could you please help me what would be the reason for this

Comment

People who like this

0 Show 2
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 Chanda Yadav · Jan 04 at 02:26 PM 0
Share

My Title Id: F7417

Player ID:6FB54C16EDB740E8

avatar image Chanda Yadav · Jan 12 at 09:08 AM 0
Share

Hi Chen, I agree there is two calls for the "FetchPlayerInventory" function. But one call only executes when there is an error in cloud script execution. Yesterday i also commented the call of "FetchPlayerInventory" function but still game freeze after cloud script executed.

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Junjin Chen · Jan 05 at 07:57 AM

We have inspected your title, there is concurrent error on GetUserInventory call. In general, this error is caused by making multiple calls without waiting for the responses. We have many servers managing all the API calls, sometimes that will work, but sometimes the calls hit the same server and caused the error. Please refer to this thread: https://community.playfab.com/questions/17862/409-conflict-when-calling-getcontentuploadurl.html

Please aggregate the API calls into one call or wait until the previous call’s response before making the next API call.

Comment

People who like this

0 Show 1 · 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 Chanda Yadav · Jan 05 at 03:16 PM 0
Share

Hi Chen

I checked my API call there is only one method in which all API are called one by one. The only difference is i am calling ExecuteCloudScript in one of the method which causing issue. This works fine when i make webgl build but it wont work with andriod and iOS build

avatar image

Answer by Chanda Yadav · Jan 06 at 02:40 AM

Hi Chen

I checked my API call there is only one method in which all API are called one by one. The only difference is i am calling ExecuteCloudScript in one of the method which causing issue. This works fine when i make webgl build but it wont work with andriod and iOS build

Comment

People who like this

0 Show 12 · 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 Junjin Chen · Jan 06 at 08:04 AM 0
Share

We checked your title again and it seems the error does not occur recently. Could you please check if the issue still exists?

avatar image Chanda Yadav Junjin Chen · Jan 07 at 10:59 AM 0
Share

Hi Chen,

I checked it not working the game freeze once the cloud script executed. Now its nit even working with webGl build. It was working before but from sometime it stop working

avatar image Chanda Yadav Junjin Chen · Jan 07 at 11:21 AM 0
Share

Added the screenshot

screenshot-2021-01-07-at-130438.png (50.7 kB)
screenshot-2021-01-07-at-130704.png (42.6 kB)
avatar image Chanda Yadav Junjin Chen · Jan 07 at 11:22 AM 0
Share

Continue to above screenshot

screenshot-2021-01-07-at-130757.png (124.2 kB)
screenshot-2021-01-07-at-130833.png (109.4 kB)
Show more comments
avatar image Junjin Chen · Jan 11 at 06:30 AM 0
Share

I have tested the CloudScript function you provide, it did not produce any error. The issue you described could be due to this incident: https://status.playfab.com/incidents/fvwln8pddr73. This incident has been resolved. Could you please try again and see if the issue still exist?

avatar image Chanda Yadav Junjin Chen · Jan 11 at 09:27 AM 0
Share

No its still not working same issue. game freeze

avatar image Junjin Chen Chanda Yadav · Jan 12 at 08:25 AM 0
Share

In the code screenshots you provide, I noticed that the function “FetchPlayerInventory” is called twice, one is in this screenshot and the other is in this screenshot. And the GetUserInventory API is called inside your “FetchPlayerInventory” function. The “/Client/GetUserInventory: HTTP/1.1 409 Conflict” error could be that your “FetchPlayerInventory” function is called twice in a short period of time. Why is your “FetchPlayerInventory” function called in that 2 place? Could you remove one and try again?

Show more comments
Show more comments

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

    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