# Multiple error 500 Discourse InvalidAccess in default\_current\_user\_provider.rb

**URL:** <https://meta.discourse.org/t/multiple-error-500-discourse-invalidaccess-in-default-current-user-provider-rb/72498>\
**Category:** Product Support\
**Created:** [20 Outubro , 2017 20:23 UTC](https://meta.discourse.org/t/multiple-error-500-discourse-invalidaccess-in-default-current-user-provider-rb/72498 "2017-10-20T20:23:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Julian\_Somoza](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@Julian\_Somoza](https://meta.discourse.org/u/Julian_Somoza)\
**Post date:** [20 Outubro , 2017 20:23 UTC](https://meta.discourse.org/t/multiple-error-500-discourse-invalidaccess-in-default-current-user-provider-rb/72498/1 "2017-10-20T20:23:56Z")

</div>

Hi!

I start to have a lot of 500 errors (Discourse InvalidAccess) in my installation and try upgrading, downgrading, backuping, etc… The only way to solve the problem was editing the file /var/www/discourse/lib/auth/default\_current\_user\_provider.rb. Modifying the line

` limiter = RateLimiter.new(nil, "cookie_auth_#{request.ip}", COOKIE_ATTEMPTS_PER_MIN ,60)`

By

` limiter = RateLimiter.new(nil, "cookie_auth_#{request.ip}", COOKIE_ATTEMPTS_PER_MIN ,0)`

Anybody know what to do this line?

Thanks in advance!

---

_[View the full topic](https://meta.discourse.org/t/multiple-error-500-discourse-invalidaccess-in-default-current-user-provider-rb/72498)._
