Skip to content

Avoid mojang API ratelimit exception spamming on startup when refresh… #5409

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orsondmc
Copy link
Contributor

@orsondmc orsondmc commented May 17, 2025

…ing friends

Type of change

  • Bug fix
  • New feature

Description

Meteor does not handle rate limits when refreshing Friends list. This results in the friends list never getting updated and a lot of spam in logs at startup.

1 second delay should do the trick.

Related issues

Mention any issues that this pr relates to.

How Has This Been Tested?

Videos or screenshots of the changes if applicable.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

Copy link
Collaborator

@RacoonDog RacoonDog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Friends.get().iterator() returns an ArrayList iterator, which would throw a ConcurrentModificationException if any friends are added/removed during the refresh

also opening the friends tab during the initial refresh would cause all of the remaining friends to be refreshed twice (and faster), so there's still rate-limit issues there

edit: considering the player head texture api endpoint is used in a few different areas in meteor, i think it'd just be better to make a dedicated rate limited queue for them

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

Successfully merging this pull request may close these issues.

2 participants