-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getSessionTicketWithSteamId Failing with Generic Error: GenericFailure channel closed. #165
Comments
This then functions later when the client is actually functional. Seems to be a timing issue. that being said, is there a way to trigger an event when the client is actually ready? or is there a flag I am missing for this? |
what do you mean by the client being ready? |
A ticket is successfully able to be generated would be my idea. Maybe some additional callback? |
Couldn't get this working as a callback with any current functionality. Workaround is to retry with a delay: ipcMain.handle('steam-session-ticket', async () => {
const getRetryableSteamAuthTicket = async (delay: number, times: number) => {
try{
return (await steamClient.auth.getSessionTicketWithSteamId(steamId)).getBytes().toString('hex');
} catch(e) {
if(times > 7){
dialog.showErrorBox('Steam Error', `Failed to get steam session ticket: ${e}`);
app.quit();
throw e;
} else {
await new Promise((resolve) => setTimeout(resolve, delay));
return getRetryableSteamAuthTicket(delay * 2, times + 1);
}
}
}
return getRetryableSteamAuthTicket(1000, 0);
}) which is pretty gross but it is working on all tested machines. |
I have the following:
The steam client is instantiated and ready to go, but the session ticket is failing with a GenericFailure
The text was updated successfully, but these errors were encountered: