Open NeatNit opened 3 months ago
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.
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.