question

mohamed amine outmal avatar image
mohamed amine outmal asked

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.

apisAccount ManagementAuthentication
3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rick Chen avatar image Rick Chen ♦ commented ·

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?

1 Like 1 ·
mohamed amine outmal avatar image mohamed amine outmal Rick Chen ♦ commented ·

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}}" }

0 Likes 0 ·
mohamed amine outmal avatar image mohamed amine outmal commented ·

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}}" }

0 Likes 0 ·
Rick Chen avatar image
Rick Chen answered

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.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mohamed amine outmal avatar image
mohamed amine outmal answered

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}}" }

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rick Chen avatar image Rick Chen ♦ commented ·

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.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.