SteamDatabase/BrowserExtension

401 Unauthorized when adding free license

pinguluk opened this issue · 9 comments

Describe the bug

Tried to activate these packages
https://steamdb.info/freepackages/

image

then I tried to add the games' licenses individually by clicking "Add free license",
image

and I've inspected the network request and Steam responds with 401 Unauthorized
image

Browser name and version

Chrome 115.0.5790.110

xPaw commented

Click preview in the response, what does Steam actually say?

Click preview in the response, what does Steam actually say?

null

xPaw commented

Did you try re-logging into the store?

Did you try re-logging into the store?

Yes, I've tried incognito too.
It used to work before

xPaw commented

Do you see steamLoginSecure cookie sent in that request?

Try manually visiting https://checkout.steampowered.com/checkout/addfreelicense you should see your avatar top right because you're logged in.

Do you see steamLoginSecure cookie sent in that request?

Try manually visiting https://checkout.steampowered.com/checkout/addfreelicense you should see your avatar top right because you're logged in.

Weird, yesterday didn't work and I've tried again just now and now it works. Maybe Steam did some changes or had some issues regarding claiming free licenses and they fixed in the meantime? (The issue can be closed)

xPaw commented

What exactly did you do that fixed it?

What exactly did you do that fixed it?

Absolutely nothing, just tried to claim the license(s) again and they worked without any error

xPaw commented

If anyone else is having issues:

What to try:

  • Update the SteamDB extension to version 3.6.9.
  • Relogin into the Steam store.
  • If family view is enabled, enter the PIN on the Steam store.
  • Restart your browser.

Debugging the extension requests:

  • Go to chrome://extensions/
  • Toggle developer mode on top right
  • Click Inspect views service worker on steamdb
  • Go to network tab
  • Click add free license somewhere on steamdb
  • There should be addfreelicense request in the list, if you click it it shows stuff
  • Click on the request, then click 'Preview' tab, it should show what the Steam response was

Until there is some issue that I can repro myself, I can't fix it. It works fine for plenty of people.