Skip to content

getSessionTicketWithSteamId Failing with Generic Error: GenericFailure channel closed. #165

Open
@Pieeer1

Description

@Pieeer1

I have the following:

    const steamworks = require('steamworks.js')

    const steamClient = steamworks.init(MY_APP_ID);

    const steamId = steamClient.localplayer.getSteamId().steamId64;
    
    //WORKS
    ipcMain.handle('steam-id', () => {
      return steamId;
    })
    //WORKS
    ipcMain.handle('steam-name', () => {
      return steamClient.localplayer.getName();
    });

//DOES NOT WORK
    ipcMain.handle('steam-session-ticket', async () => {

      try {
        const ticket = await steamClient.auth.getSessionTicketWithSteamId(steamId)
        
        console.log(`Steam Ticket: ${ticket}`)
        console.log(`Steam Ticket: ${ticket.getBytes()}`)

      }catch (e) {
        console.error(`Steam Not Loaded: ${e}`)
      }

      return await steamClient.auth.getSessionTicketWithSteamId(steamId);
    })

The steam client is instantiated and ready to go, but the session ticket is failing with a GenericFailure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions