Skip to content
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

No Set-Cookie header in result #52

Open
endze1t opened this issue Feb 13, 2025 · 1 comment
Open

No Set-Cookie header in result #52

endze1t opened this issue Feb 13, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@endze1t
Copy link

endze1t commented Feb 13, 2025

Describe the bug

For the past couple of weeks, we have occasionally received the error "No Set-Cookie header in result" on a few accounts when starting bots. The affected accounts seem to be random. The issue began without any code changes, so I believe this is a problem on Steam's end. However, it makes the login process quite inconvenient.

Any ideas on how to improve this?

Versions

Node 20 and Node 22. Latest Steamcommunity and Steam Session npm packages.

Screenshots and Error Logs

Error: No Set-Cookie header in result\n at /opt/bots/node_modules/steam-session/dist/LoginSession.js:715:23\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Promise.all (index 3)\n at async LoginSession.getWebCookies (/opt/bots/node_modules/steam-session/dist/LoginSession.js:706:9)\n at async LoginSession. (/opt/bots/node_modules/steamcommunity/components/login.js:54:22)

@endze1t endze1t added the bug Something isn't working label Feb 13, 2025
@endze1t
Copy link
Author

endze1t commented Feb 16, 2025

If that helps:

            if (!result.headers || !result.headers['set-cookie'] || result.headers['set-cookie'].length == 0) {
                console.log(body);
                console.log(result.headers);
                throw new Error('No Set-Cookie header in result');
            }

body:

{
  steamID: '<STEAMID>',
  nonce: '<NONCEHASH>',
  auth: '<AUTHHASH>'
}

result.headers:

{
  server: 'nginx',
  'content-type': 'text/html; charset=utf-8',
  'content-length': '12619',
  date: 'Sat, 15 Feb 2025 23:59:59 GMT',
  connection: 'close'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant