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 /
  • General Discussion /
avatar image
Question by shouttree · Oct 15, 2019 at 01:41 AM · unity3dAccount ManagementAuthentication

Unicorn Battle iOS build returns "GetAccountInfo Timed out after 10 seconds."

Hi, Anyone met this problem while running Unicorn Battle in iOS ?

There's no such error in Unity Editor mode when selecting standalone mode in build settings. But when I switched to ios build, I got this error in both Unity Editor and the ios app built with xcode.

The timed out api call is

GetPlayerCombinedInfo

PlayFabHttp.MakeApiCall("/Client/GetPlayerCombinedInfo",...)

and it fails to get response within 10 seconds from playfab. only when the buildsettings is set to ios.

I'm new to Playfab and I don't know what's wrong. I thought Unicorn Battle should run with no error since I searched and found no related results. Anybody with any idea would be appreciated.

Thanks.

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 Citrus Yan · Oct 15, 2019 at 09:39 AM 0
Share

Hi @shouttree, can you provide network traffic details of the timed-out response using the network capture tool such as fiddler?

avatar image shouttree Citrus Yan · Oct 16, 2019 at 09:16 AM 0
Share

Yes of course. But due to words limit, I'll reply directly to my question.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by shouttree · Oct 16, 2019 at 11:58 AM

Hi, Citrus

I used Charles to capture the network info since somehow I failed to install fiddler on my macbookpro.

When set to ios in Build Settings and run in Unity Editor, The requested info and the reponse content is in this text file:getplayercombinedinfo-failed-charlescontent.txt
When set to standalone in Build Settings and run in Unity Editor, The requested info and the reponse content is in this text file:getplayercombinedinfo-success-charlescontent.txt

You can see that there's no obvious difference between them. And it seems weird to fail since there's response from playfab for ios build.

I traced a bit further in Unity script of Unicorn battle, only to find that the Timed Out error message appears since the success callback(in the code below it's OnGetUserAccountInfoSuccess) is not called.

PlayFabClientAPI.GetPlayerCombinedInfo(request, OnGetUserAccountInfoSuccess, PF_Bridge.PlayFabErrorCallback);

For standalone build, though the response info is the same as the ios build, OnGetUserAccountInfoSuccess is called and there's no such error message after then.

Do you know why there's such difference for the two platform even they're all run in Unity Editor ? I didn't find the code to call the callback of MakeApiCall, I think it must be binary.

Appreciate for your help and look forward for your answer.

Thanks,

Shouttree


getplayercombinedinfo-failed-charlescontent.txt (1.9 kB)
getplayercombinedinfo-success-charlescontent.txt (1.9 kB)
Comment
Citrus Yan

People who like this

1 Show 9 · 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 Citrus Yan · Oct 17, 2019 at 06:41 AM 0
Share

Hi @shouttree,

Which Unity version are you using? I am trying to reproduce it.

avatar image shouttree Citrus Yan · Oct 17, 2019 at 03:29 PM 0
Share

2019.1.3f1, it's the version the latest master branch of Unicorn Battle uses.

avatar image Citrus Yan · Oct 17, 2019 at 07:00 AM 0
Share

And, does it help if you upgrade PlayFab SDK to the newest version?

avatar image shouttree Citrus Yan · Oct 17, 2019 at 03:31 PM 0
Share

I tried it, but after upgrading there're some compiling errors which I don't know how to fix.

wx20191017-232536.png (81.5 kB)
avatar image Citrus Yan shouttree · Oct 18, 2019 at 02:13 AM 0
Share

Hi @shouttree, just discussed with the team, it might be a transport layer issue in Unity when switching to IOS build. Actually, Unicorn Battle is a rather complex sample, which is hard to debug. Here are some samples demonstrating PlayFab features, you can start from that.

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

    Related Questions

    How to log into original account on reinstall or new device? 1 Answer

    Unity Editor Extension Login 2FA 1 Answer

    Login through email address fails 1 Answer

    WebGL Generate CustomId 2 Answers

    Manage subscription based items 1 Answer

    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