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 mohamed amine outmal · Sep 28, 2021 at 01:48 AM · apisAccount ManagementAuthentication

InvalidAPIEndpoint

im using laravel to calling endpoint playfab so when i do an http request "POST" of endpoint playfab a got this error :

"message": "Client error: `POST https://9f757.playfabapi.com/Client/RegisterPlayFabUser/` resulted in a `400 Bad Request` response:\n{\"code\":400,\"status\":\"BadRequest\",\"error\":\"InvalidAPIEndpoint\",\"errorCode\":1131,\"errorMessage\":\"Could not determine a ti (truncated...)\n", "exception": "GuzzleHttp\\Exception\\ClientException",

seems that the url is incorrect but it looks correct , anyone can help please ?

,

im using laravel api to calling endpoint of playfab so when i run an http request "POST' of the endpoint "registerPlayFabUser" i got this error :

error :

"message": "Client error: `POST https://9f787.playfabapi.com/Client/RegisterPlayFabUser/` resulted in a `400 Bad Request` response:\n{\"code\":400,\"status\":\"BadRequest\",\"error\":\"InvalidAPIEndpoint\",\"errorCode\":1131,\"errorMessage\":\"Could not determine a ti (truncated...)\n", "exception": "GuzzleHttp\\Exception\\ClientException",

can anyone help please.

Comment
mohamed amine outmal

People who like this

1 Show 3
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 Rick Chen ♦ · Sep 28, 2021 at 10:05 AM 1
Share

The error message seems to be truncated, could you please provide the full response for us to diagnose? And what is the request body when you call the API?

avatar image mohamed amine outmal Rick Chen ♦ · Sep 28, 2021 at 01:32 PM 0
Share

this is the full response error :

2021-09-27 15:13:22] local.ERROR: Client error: `POST https://9f757.playfabapi.com/Client/RegisterPlayFabUser/` resulted in a `400 Bad Request` response: {"code":400,"status":"BadRequest","error":"InvalidAPIEndpoint","errorCode":1131,"errorMessage":"Could not determine a ti (truncated...) {"userId":1,"exception":"[object] (GuzzleHttp\\Exception\\ClientException(code: 400): Client error: `POST https://9f757.playfabapi.com/Client/RegisterPlayFabUser/` resulted in a `400 Bad Request` response: {\"code\":400,\"status\":\"BadRequest\",\"error\":\"InvalidAPIEndpoint\",\"errorCode\":1131,\"errorMessage\":\"Could not determine a ti (truncated...) at /Applications/MAMP/htdocs/wui_api/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113)

request body :

{ "Username": "theuser", "Email": "me@here.com", "Password": "ExampleSecret", "TitleId": "{{TitleId}}" }

avatar image mohamed amine outmal · Sep 28, 2021 at 11:54 AM 0
Share

this is the full response error :

2021-09-27 15:13:22] local.ERROR: Client error: `POST https://9f757.playfabapi.com/Client/RegisterPlayFabUser/` resulted in a `400 Bad Request` response: {"code":400,"status":"BadRequest","error":"InvalidAPIEndpoint","errorCode":1131,"errorMessage":"Could not determine a ti (truncated...) {"userId":1,"exception":"[object] (GuzzleHttp\\Exception\\ClientException(code: 400): Client error: `POST https://9f757.playfabapi.com/Client/RegisterPlayFabUser/` resulted in a `400 Bad Request` response: {\"code\":400,\"status\":\"BadRequest\",\"error\":\"InvalidAPIEndpoint\",\"errorCode\":1131,\"errorMessage\":\"Could not determine a ti (truncated...) at /Applications/MAMP/htdocs/wui_api/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113)

request body :

{ "Username": "theuser", "Email": "me@here.com", "Password": "ExampleSecret", "TitleId": "{{TitleId}}" }

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Rick Chen · Oct 05, 2021 at 09:53 AM

Sorry for the late reply. I noticed that the TitleId that in your request body was "{{TitleId}}" instead of your real title id. If the TitleId is not valid, it will returns the error message "Could not determine a title id for this." You can replace the {{TitleId}} with your real title id and try again.

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
avatar image

Answer by mohamed amine outmal · Sep 29, 2021 at 05:24 AM

this is the full response error :


2021-09-27 15:13:22] local.ERROR: Client error: `POST https://9f757.playfabapi.com/Client/RegisterPlayFabUser/` resulted in a `400 Bad Request` response: {"code":400,"status":"BadRequest","error":"InvalidAPIEndpoint","errorCode":1131,"errorMessage":"Could not determine a ti (truncated...) {"userId":1,"exception":"[object] (GuzzleHttp\\Exception\\ClientException(code: 400): Client error: `POST https://9f757.playfabapi.com/Client/RegisterPlayFabUser/` resulted in a `400 Bad Request` response: {\"code\":400,\"status\":\"BadRequest\",\"error\":\"InvalidAPIEndpoint\",\"errorCode\":1131,\"errorMessage\":\"Could not determine a ti (truncated...) at /Applications/MAMP/htdocs/wui_api/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113)



request body :

{ "Username": "theuser", "Email": "me@here.com", "Password": "ExampleSecret", "TitleId": "{{TitleId}}" }

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 Rick Chen ♦ · Oct 05, 2021 at 09:15 AM 0
Share

Sorry for the late reply. I cannot reproduce this issue on Postman. Did you use the PlayFab PHP SDK? If not, please tell us which SDK you were using and we may do some test on that.

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

    Google account IDs don't match 1 Answer

    AddUsernamePassword requires both email and username while Other APIs do not? 1 Answer

    Deny CreateAccount in LoginWithCustomIDRequest 1 Answer

    Get Language List fails at Entity Authentication 2 Answers

    Email registration across different titles 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