Rate Limiting on Upcoming Events Week View Despite High Custom API Throttle Settings

Description

After a recent Discourse rebuild (self-hosted), I am consistently encountering user-facing rate limiting (429 errors) when viewing the main Full Calendar Version 6, even though my site has very low activity (1–2 simultaneous users). This behavior started appearing after my last two rebuilds.

My rate limit configuration (as set in app.yml):

  • DISCOURSE_MAX_ADMIN_API_REQS_PER_MINUTE: 4x default
  • DISCOURSE_MAX_REQS_PER_MINUTE: 4x default
  • DISCOURSE_MAX_REQS_PER_DAY: 4x default
  • No per-IP rate limit is specified.

Observations

  • No errors are shown in /logs.
  • No reverse proxy is in use (standard Let’s Encrypt container and an A record on domain).
  • Only calendar views seem to trigger this unexpected rate limiting.
  • There have been no changes to user activity
  • all plugins and theme components are official
  • This started only after a recent Discourse rebuild. Continued after tonight’s rebuild
  • Admin > Logs are clean at time of incident.

Troubleshooting so far

  • Confirmed the custom rate-limit settings are present and well above defaults.
  • Tried multiple browsers, cleared caches.
  • meta.discourse.org topics suggest there may be additional undocumented internal rate limits overriding custom values after upgrades.

References


Request

Could you please:

  1. Confirm if there are any new or hidden rate limiters that would affect background or plugin-generated requests after a recent update/rebuild, and if so, describe how to override or tune them.
  2. Advise why my high custom rate limits are not being respected for the calendar view.
  3. Suggest further troubleshooting or configuration changes, if any.

Thank you!

It looks like this could be related to Re-add full ics export - #9 by kelv because 100 events seem to show, then after about 2 minutes can display another large batch, and they don’t appear gradually but in large chunks.

Edit: This rate-limited behaviour is manageable for now, but becomes apparent when advancing far; i can see all the events for my current week and all the events in the next, it’s if i then proceed to the next week i hit the hard limit.

I should also clarify that, the upcoming events full calendar v6 wasn’t rate limited to this extent, before i set the custom api throttle settings. These app.yml settings didn’t change the rate limiting visible on FullCalendar :wink:

@kelv could you look at this please?

i can still repro this

We can’t repro this at all at the moment. Which commit are you on? How many events do you have?

Discourse latest-release +369

Docker_manager 3e5ec72d

Bbcode 633030d8

Categories suppressed d5550658

Who’s online 3fe319b8

Themes and Components

Default


[Category Banners]

Show banners on category pages using your existing category details. Learn more

[Clickable Topic]

If you want to edit this theme, you must submit a change on its repository

[Custom Header Links (icons)]

If you want to edit this theme, you must submit a change on its repository

[Discourse Gifs]

If you want to edit this theme, you must submit a change on its repository

[Inline PDF Previews]

If you want to edit this theme, you must submit a change on its repository

[Reader Mode]

If you want to edit this theme, you must submit a change on its repository

44 next Week

none of the ~40 loading Week after

FullCalendar had started behaving itself, because i went back a few weeks and then went forward many weeks