mybgg icon indicating copy to clipboard operation
mybgg copied to clipboard

Hourly updates now failing

Open cryyogenic opened this issue 5 months ago • 11 comments

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:

Image

cryyogenic avatar Oct 29 '25 13:10 cryyogenic

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 avatar Oct 29 '25 14:10 boglesby03

@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 avatar Oct 30 '25 19:10 EmilStenstrom

See also https://github.com/EmilStenstrom/gamecache/issues/95#issue-3246011473

EmilStenstrom avatar Oct 30 '25 19:10 EmilStenstrom

@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 avatar Oct 30 '25 20:10 boglesby03

@boglesby03 Thanks! <3

Mind adding a PR that uses a token if it exist as a GitHub Secret?

EmilStenstrom avatar Oct 31 '25 06:10 EmilStenstrom

@boglesby03 Mind testing the latest version I just pushed? README is updated.

EmilStenstrom avatar Nov 01 '25 16:11 EmilStenstrom

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 avatar Nov 01 '25 16:11 boglesby03

@boglesby03 I think the code I have works with your own token too. Haven't tested though.

EmilStenstrom avatar Nov 01 '25 19:11 EmilStenstrom

@EmilStenstrom I merged your version in. I was able to add my token with the new secret name and everything is working.

boglesby03 avatar Nov 04 '25 17:11 boglesby03

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.

chardila avatar Nov 28 '25 16:11 chardila

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

EmilStenstrom avatar Nov 28 '25 20:11 EmilStenstrom