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

Error "panic: GetPlayTime err:response code expects 200, but got 401" #9

Open
ElenaRgC opened this issue Dec 11, 2021 · 2 comments
Open

Comments

@ElenaRgC
Copy link

This is the error I get when the job tries to run:

  ./steam
  git config --global user.email "bot@github.com" && git config --global user.name "Steam-Bot"
  git diff
  git add README.md && git commit -m ":memo: update profile" || exit 0
  git pull && git push
  shell: /usr/bin/bash -e {0}
  env:
    GH_TOKEN: 
    GIST_ID: 8a182c3d9f6b848d6b8e238c4681f02a
    STEAM_API_KEY: 
    STEAM_ID: 
    UPDATE_OPTION: GIST_AND_MARKDOWN
    MARKDOWN_FILE: README.md
    GOROOT: /opt/hostedtoolcache/go/1.17.3/x64
panic: GetPlayTime err:response code expects 200, but got 401, response body <html><head><title>Unauthorized</title></head><body><h1>Unauthorized</h1>Access is denied. Retrying will not help. Please verify your <pre>key=</pre> parameter.</body></html>

goroutine 1 [running]:
main.main()
	/home/runner/work/ElenaRgC/ElenaRgC/steam-box/cmd/box/main.go:73 +0x9db
Error: Process completed with exit code 2.

A screen cap showing where the error happens:
image

I've read the other issues before posting, but I had no luck.

First I thought I was using a wrong Steam ID, so I've tried both the DEC and HEX ID64, and it made no difference. Then I checked the secrets, remade the token to be sure it had the gist scope (and changed the files accordingly), and I've also deleted and remade the schedule.yml file.

The updates keep giving the same error every time. I think it's something related to the secrets? I've checked other people's issues while googling this particular error, and they all get their secrets censored, but here they appear blank like they don't exist?

Or maybe I just messed in another place, not sure. Thank you!

@scillidan
Copy link

scillidan commented Feb 7, 2023

Same errors.
And error yet with the fork (https://github.com/homurax/steam-box) .
I really want to list my life I wasted playing on steam 🤡.

image

@luyanci
Copy link

luyanci commented May 24, 2024

It looks STEAM_API_KEY setting error or missing.🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants