-
Notifications
You must be signed in to change notification settings - Fork 72
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
Encountered an error reporting: AttributeError: 'State' object has no attribute 'view_rate_limit' #114
Comments
@239144498 thanks for opening this. Can you try to change the name of the route handlers so that they are different? Like Even if they are fastapi routes, they are still python functions, and they should have different names, otherwise, you're essentially overriding one function definition with the other. |
Thanks for your answer, this problem is solved.
When I request interface demo1 the following error is reported.
What can I do to pass the request parameter to the check function? |
This should help #13 |
Code reproduction:
slowapi code configuration
This is my interface code
When I request the interface demo1 I get the error AttributeError: 'State' object has no attribute 'view_rate_limit', When I comment out the @limiter.exempt and then request the interface demo1, it works fine.
The following is the complete log of errors reported.
I don't know how to fix this error and I need help.
The text was updated successfully, but these errors were encountered: