question

SniperED007 avatar image
SniperED007 asked

PlayFabClientAPI.LoginWithSteam fails on second attempt within short period

When I run my game in the Unity Editor it authenticates successfully with Steam, but if I stop the editor and then re-run it within say 30 seconds it then throws the following error below. If I wait a bit and re-run it then it works again.


FAILED TO LOGIN TO PLAYFAB - Steam API AuthenticateUserTicket error response: {"response":{"error":{"errorcode":101,"errordesc":"Invalid ticket"}}} for authentication ticket 140000001226c635fe165b912e905202010010018f29aa621800000001000000020000003e8e3f764c45c1183113351c3c000000b200000032000000040000002e90520201001001d86d1400586261519c00a8c000000000a9f9a16229a9bd62010058240700000000001437726e3afc70e7aa07e6bf02730642c0bd7b905c6a58fe9c8f9ef7705d87d83329ebb7cae671bd9e67b0793b31117f7a0d931efe525e0f81b6e29ed918ec0110ca0789d4f1ce74005dfaee1db87ba4d626d453a35712c956853775bebf67dd565732fcd27452879e4a477a3aaa1f1e17231b1d7682dd0910e2540df821ebe1

I'm only attempting the login once Steam has successfully initialized.
It seems like PlayFab is caching the first ticket number for a brief period.
Please can you confirm if that is the case and what can be done about it?

10 |1200

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

Made Wang avatar image
Made Wang answered

PlayFab simply submits the SteamTicket to Valve for authentication and this error message is returned by Valve. From this documentation, AuthenticateUserTicket seems to have a rate limit, and it is recommended that you consult the steam developer community for more information.

10 |1200

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

SniperED007 avatar image
SniperED007 answered

Thans.
It seems to only be a problem when in the Unity editor.

I think it may have something to do with the way Steam treats the game as still running if Unity is still running.

10 |1200

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

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.