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

Upload has been blocked due to rate limiting. Please try again later. #8

Open
NeatNit opened this issue Aug 3, 2024 · 1 comment
Open

Comments

@NeatNit
Copy link

NeatNit commented Aug 3, 2024

It seems like the Sandbox is throwing this error when uploading, even if the change size is well below the maximum. I'm dealing with the same problem right now in my own project https://codeberg.org/NeatNit/osm-bus-stops-to-sandbox

I suspect this is thrown because of the file size of the uploaded OsmChange. So if you split the changeset over, say, 20 different uploads it might work. I'll try this soon in my own project, but it will take a while because it turns out I have to fix an unrelated problem first.

@NeatNit
Copy link
Author

NeatNit commented Aug 3, 2024

This might be different between users. Found this: https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/api_controller.rb#L201

  def check_rate_limit(new_changes = 1)
    max_changes = ActiveRecord::Base.connection.select_value(
      "SELECT api_rate_limit($1)", "api_rate_limit", [current_user.id]
    )

    raise OSM::APIRateLimitExceeded if new_changes > max_changes
  end

I'm still not sure I'm looking at the right thing, but if so, it seems to have a different limit per user.

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

1 participant