question

salemstefanus avatar image
salemstefanus asked

Unable to contact server

Hi, I've already push and uploaded the game server. But when the game server runs on the backend, seems the server is unable to contact any server using API. The game server tries to call the GetEntityToken function but seems to get an error called "Unable to contact server". Can you guys help on this? Thank you.

Title Id: 4E71A

Logs:

[2023.09.26-10.59.14:371][824]LogPlayFab: Header: X-SecretKey:

[2023.09.26-10.59.14:371][824]LogPlayFab: Header: Content-Type: application/json

[2023.09.26-10.59.14:371][824]LogPlayFab: Header: X-PlayFabSDK: UE4MKPL-1.125.230901

[2023.09.26-10.59.14:371][824]LogPlayFab: Header: X-ReportErrorAsSuccess: true

[2023.09.26-10.59.14:573][831]LogPlayFab: Error: Request failed: https://4E71A.playfabapi.com/Authentication/GetEntityToken?sdk=UE4MKPL-1.125.230901

[2023.09.26-10.59.14:573][831]LogBlueprintUserMessages: [GI_StupidGames_C_2147482578] Error Code: 503 Error Name: Unable to contact server Error Message: Unable to contact server Error Details:

apisAuthenticationCustom Game Servers
10 |1200

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

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

Could you please provide us with the full server error logs so we can conduct a more accurate study. Also, here is a similar case that has the similar error, you can refer to: "Unable to contact server" - Playfab Community.

2 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.

salemstefanus avatar image salemstefanus commented ·

Hi, here it is the server log when the server tries to get the entity token.6421-server-can-not-get-entity-token.txt

0 Likes 0 ·
Xiao Zha avatar image Xiao Zha salemstefanus commented ·

Please delete the secret key in the server logs you provided as it may be used to hack your game. You may need to create and use new secret key.

According to the server logs, it seems that the CA certificate is missing, you may try the solution in MpsSamples/amazon_root_ca.md at main PlayFab/MpsSamples (github.com) to install the certificate manually. Alternatively, you may try unchecking "verify peer" in your UE project settings.

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.