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