core icon indicating copy to clipboard operation
core copied to clipboard

Steam_online -- Server connection failed: Too Many Requests (429)

Open felafel opened this issue 8 months ago • 2 comments

The problem

Getting this error when I try to reload the integration or at different times during the day.

= Failed setup, will retry = Server connection failed: Too Many Requests (429)

I had 15 Steam IDs and then limited it to 8 Steam IDs after reading a previous bug about this. Same problem.

It seems to be happening more lately. I did install core-2025.2.5 a couple of days ago from core-2025.1.? but I remember this was starting to be more problematic a couple of weeks ago.

I think this was fixed; but because it was not tested it was not released.

Previous issue: https://github.com/home-assistant/core/issues/23828

Fix that I think was not released: https://github.com/home-assistant/core/pull/23941

I will test this fix. I think it should poll every 60-90 seconds and preferably have a user editable parameter with safeguard such as must be greater than 14.

Thanks in advance

What version of Home Assistant Core has the issue?

core-2025.2.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

steam_online

Link to integration documentation on our website

https://www.home-assistant.io/integrations/steam_online

Diagnostics information

No response

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

No response

felafel avatar Mar 04 '25 14:03 felafel

Hey there @tkdrob, mind taking a look at this issue as it has been labeled with an integration (steam_online) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of steam_online can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign steam_online Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


steam_online documentation steam_online source (message by IssueLinks)

home-assistant[bot] avatar Mar 04 '25 14:03 home-assistant[bot]

I'm seeing this as well, with only 3 Steam IDs

Kahera avatar Mar 25 '25 18:03 Kahera

I'm seeing this as well, with only 3 Steam IDs

Same here :-)

HrCalmar avatar Apr 19 '25 15:04 HrCalmar

My sensors are continuously showing "unavailable" every minute or two, so I assume this is related.

adamjthompson avatar Apr 22 '25 19:04 adamjthompson

Same with only 1 Steam ID.

GilDev avatar Apr 23 '25 15:04 GilDev

Same issue

[homeassistant.components.steam_online] Error fetching steam_online data: Server connection failed: Too Many Requests (429)

tarause avatar Apr 26 '25 15:04 tarause

Same issue here. 2 Steam IDS:

Last logged: 16:29:47

Error fetching steam_online data: Server connection failed: Bad Gateway (502) Error fetching steam_online data: Server took too long to respond Error fetching steam_online data: Server connection failed: Too Many Requests (429)

Sometimes only one user, sometimes both.

Image

Mars455 avatar May 06 '25 15:05 Mars455

Facing this issue myself with 3 sensors.

Ryonez avatar May 25 '25 03:05 Ryonez

I feel like mine has improved by disabling polling and increasing the interval to 1 minute

https://community.home-assistant.io/t/how-to-set-a-custom-scan-interval/680579

ammgws avatar May 25 '25 13:05 ammgws

Thing is I am using it for some automations where 1 minute is too long :/ set mine to 10 seconds and it seems to have gotten better today (only unavailable once so far over the last 3 hours) Will keep testing but for now 10 seconds seems OK

Mars455 avatar May 27 '25 12:05 Mars455

IIRC the default is 30 seconds so lowering it would in theory make it more likely you get rate limited

ammgws avatar May 27 '25 16:05 ammgws

You're definitely right! Apologies wasnt aware of that number Will just update when the automation runs

Mars455 avatar May 27 '25 16:05 Mars455

Did Valve change any API rate limits?

joostlek avatar May 27 '25 17:05 joostlek

No idea, but I've set mine to only update every 30 minutes and I'm still getting the 429 error. I'm guessing it's not a per-day rate limit we're hitting, but a per-minute or per-hour rate limit.

cainerwolf avatar Jun 05 '25 16:06 cainerwolf

No idea, but I've set mine to only update every 30 minutes and I'm still getting the 429 error. I'm guessing it's not a per-day rate limit we're hitting, but a per-minute or per-hour rate limit.

How did you limit the update to 30 minutes? Thanks

felafel avatar Jun 23 '25 19:06 felafel

How did you limit the update to 30 minutes? Thanks

As @ammgws mentioned above: https://community.home-assistant.io/t/680579

Permanently avatar Jun 24 '25 09:06 Permanently

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.