Hourly updates now failing
Hourly updates started failing a couple of days ago giving the below email. No changes have been made on my end. I tested validation again and the sync to BGG showed an error:
BGG went live with their new security model on Oct 21. They now require apps to be registered and provide a Bearer token on all API calls.
@boglesby03 Hi. I have an idea of how to solve it, but is sick with a cold atm. Give me a couple of weeks.
See also https://github.com/EmilStenstrom/gamecache/issues/95#issue-3246011473
@boglesby03 Hi. I have an idea of how to solve it, but is sick with a cold atm. Give me a couple of weeks.
@EmilStenstrom I appreciate everything you're doing. I worked around it by registering myself and hiding the token in a github secret. I know that's more complicated then what you want to do for the general solution.
@boglesby03 Thanks! <3
Mind adding a PR that uses a token if it exist as a GitHub Secret?
@boglesby03 Mind testing the latest version I just pushed? README is updated.
Sure I'll get it updated and try it out. I'll work on the PR. My code is a mess, so I'll have to pull it out into a branch first.
@boglesby03 I think the code I have works with your own token too. Haven't tested though.
@EmilStenstrom I merged your version in. I was able to add my token with the new secret name and everything is working.
I ran python scripts/setup_bgg_token.py to get a token, but the generated token is not working. In the workflow, I’m seeing this error:
gamecache.bgg_client.BGGException: BGG API authentication failed (401 Unauthorized). Token present but rejected by BGG. Try regenerating your token: python scripts/setup_bgg_token.py
I repeated the process with the same result. I’m also trying to create an Application for my site, but the response is taking a long time, so I’m waiting to see if it gets approved. Any feedback on this would be greatly appreciated.
I can see that the token is being created, so I'm wondering what's wrong. The username looks correct. Do you have any other debug logs to go by?
My own script worked fine 23 minutes ago: https://github.com/EmilStenstrom/gamecache-EmilStenstrom/actions/runs/19772947600/job/56660542870