-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
rest_framework.throttling sets invalid key for memcached. #2400
Comments
@amrael what are your values for |
These are the headers of the troublesome request in question. It seems the X-Forwarded-For header is used for the key as-is. |
@amrael It seems For now, you could either set |
@jpadilla Thanks for the commit.
It's measuring the length of |
Indeed. That should surely be:
|
Closed by #2401. |
I stumbled upon an error, "error 9 from memcached_set: SUCCESS" and it turned out that DRF creates invalid key for throttling such as
:1:throttle_anon_153.191.xxx.xxx, 107.178.xxx.xxx
. memcached cannot have keys containing space so I assume this is a bug.The text was updated successfully, but these errors were encountered: