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 stephencox · Feb 01, 2021 at 02:27 AM · unity3dsupport

LoginWithXbox always returns "Could not determine a title id for this."

I'm having trouble logging in with the LoginWithXbox function. I'm using Unity 2019.4.14f1, I've imported the Unity editor extensions, downloaded the Playfab SDK and added the Playfab Party add-on. I'm able to retrieve the required token but every time I try to login I get the following error:

/Client/LoginWithXbox: Could not determine a title id for this.

I've been testing the API with Postman and have verified that the token I'm sending is valid - I'm able to successfully login from there. After much experimentation I noticed that I get the same error using Postman if I remove the TitleId field from the body of the request.

I'm using the following code to try and log in. Any recommendations on how to successfully log in with this method would be appreciated.

	var request = new LoginWithXboxRequest { XboxToken = token, TitleId = "XXXXX", CreateAccount = true };
	PlayFabClientAPI.LoginWithXbox(request, OnLoginSuccess, OnLoginFailure);
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 stephencox · Feb 01, 2021 at 12:35 AM 0
Share

Update - we're actually using Unity 2019.4.16f1 that supports GameCore. The PlayFab SDK we're using is UnitySDK-2.103.210125.

I used fiddler to look at the call to https://XXXX.playfabapi.com/ and it doesn't look like any of the parameters (XboxToken, TitleId or CreateAccount) are being included in the call, which would explain the error response.

How to I generate a valid API call that includes those parameters?

avatar image stephencox · Feb 01, 2021 at 12:50 AM 0
Share

It looks like this may be caused by a bug in the Microsoft XCurl library that is resulting in the POST data not being sent out. Upgrading to Unity 2019.4.17f1 is supposed to fix the problem. I'm upgrading now and will report back.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by stephencox · Feb 01, 2021 at 03:26 AM

Upgrading to Unity 2019.4.18f1 fixed the problem.

Comment

People who like this

0 Show 0 · 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

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

    1 Person is following this question.

    avatar image

    Related Questions

    HTTP/1.1 400 Bad Request calling GetUserData 1 Answer

    Unity plugin supporting multiple sessions at once (and multiple users)? 1 Answer

    How can i signin with google play and playfab,How can I sign in with the new google play plugin. 1 Answer

    How to get random playfabid,getting random player id (other player) 1 Answer

    Login to Kongregate: call Java from c# script 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