I'm currently developing a game and I have set it up so that the client authenticates through facebook, then attempts to connect to my own servers, who in tern validate the current session on playfab before continuing with usual login process.
This has worked fine for months, but recently I started getting random errors when my server tries to call the AuthenticateSessionTicketAsync() method. Yesterday it was so bad that I stopped trying. Today I tried and it worked first time, but everything since has been failing with an error mesage saying 'Name or service not known'.
I haven't been able to find anything firectly related to that error, but it seems incorrect because it works sometimes?
Any advice would be greatly appreciated
Answer by Gosen Gao · Sep 24, 2021 at 02:16 AM
Usually, when something goes wrong with PlayFab, PlayFab will return a detailed error message, such as “InvalidSessionTicket”. You can find it in the API document.
But according to your error code, it would be more like a network issue to me. You may find some methods for troubleshooting in this thread-ConnectionError when calling RedeemMatchmakerTicket - Playfab Community.
By the way, can you reproduce the issue through Postman? Is there any other API has the same issue?
Answer by Gosen Gao · Sep 20, 2021 at 08:28 AM
Can you figure out what is the different between the first successful call and the other failure calls? Could you please print the request of both successful and failure calls? May I know the code of AuthenticateSessionTicketAsync, the detail of error message and your title ID? Please remove any sensitive info.
Answer by Sevdanski · Sep 22, 2021 at 04:28 AM
I've attached a screen shot of the debugger at the point where it is failing. I've expanded the locals and got it to log out some of the settings so that you can see that all the required data appears to be here - I believe I have removed anything sensitive, but if I have missed anything, please let me know.
The unity client before this point has logged into facebook via playfab, then it calls this server to run some auth before downloading all the initial data. I had not touched this server code in a long time, so I have no idea what would have changed. I think I streamlined some stuff on the client, but the fact that it is getting here means that it has logged successfully and this is just doing a check server side.
Betweens runs, nothing should have changed.
It is probably worth noting that when I was messing around with this issue, I create a new key and updated it on my server - since around that time, I haven't been able to get this code to work, and have actually just been skipping it for now. Could just be coincidence.
Please let me know if there is anythign else you need from me.