Max new topic per day with negative wait seconds

We’ve just opened our community to all our internal customers :tada:.
Before doing so, we have imported (through API) lots of data two weeks ago with reassigned ownership of posts/topics and setting the right date. For our entire community, the last topic was created 21h ago and not by that person.

All our users are TL3 or above.
We are on v3.1.0.beta4.

Our first user (who had created their account 18days ago) is now trying to post a new topic. They are however facing a strange issue:

"errors":["You’ve reached the maximum new topics allowed per day. You can create more new topics in a few seconds."],
"extras":{"wait_seconds":-1683792363,"time_left":"a few seconds"}

The wait_seconds is negative (and going even more down for each attempt) and that puzzles me. Is there something we need to reset somewhere?

We have set all rate limits to 0.

1 Like

That’s strange Indeed.

You’re self hosted? It’s a standard install?

Does this affect all users or just this one?

There are some rake tasks and some model methods with “ensure_consistency” in their names. You might try those.

It doesn’t seem likely that it’s a bug you can replicate.

Thanks Jay!

It is a self-hosted standard install indeed and affects all non-admin users.

I do not have access to the container but will ask the person who does to check some of the rake tasks.

I’ve had a quick test and I think I can replicate this if I set the max topics per day to 0 and try and create a topic with a non-admin user:

Is that worth a check?


That is the solution! Thank you @JammyDodger!

1 Like

So if an admin doesn’t want to use that limit then value like 86400 is right solution?

I have ended up using the max allowed value which is 2000000000

1 Like

Nice work, @JammyDodger!

Maybe move this to bug and disallow setting that to 0.

Shows what I know!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.