Infinite loop with Django, MongoDB and Djongo with HasApiKey - Solved? #241
Unanswered
Manu-Fraile
asked this question in
Q&A
Replies: 1 comment
-
Hello @Manu-Fraile Could you provide a traceback for the infinite loop you’re using? Was that a maximum recursion depth error? Where does it say it loops on exactly? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I found a bug when using HasApiKey as the permission class for my views. In my project I'm using Django, MongoDB and Djongo. The issue was that while checking the Api-Key I always ended up in an infinite loop inside djongo.
I found a solution that is working good for me by rewriting the method
has_permission
inside theBaseHasApiKey
class:If I am breaking anything that I'm not aware of, please let me know. On the other hand, if this could contribute somehow, do not hesitate to let me know.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions