[Bug]: 'AnonymousUserMixin' object has no attribute 'id'
Self Checks
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (Language Policy).
- [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
- [x] Please do not modify this template :) and fill in all the required fields.
RAGFlow workspace code commit ID
26d3480e
RAGFlow image version
v0.17.0
Other environment information
Actual behavior
app.config["LOGIN_DISABLED"] = True,Exception AttributeError occurred: ' AnonymousUserMixin' object has no attribute 'id'
Expected behavior
No response
Steps to reproduce
app.config["LOGIN_DISABLED"] = True
Additional information
No response
@zzccctv Hello there! I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer. Let me know how I can assist you.
The error you're encountering, 'AnonymousUserMixin' object has no attribute 'id', suggests that the AnonymousUserMixin class does not have an id attribute defined. This might be because the AnonymousUserMixin is intended to represent an anonymous user, who typically wouldn't have an id like authenticated users do.
To address this issue, you can check if the code is attempting to access the id attribute of an anonymous user and adjust it to handle cases where the user is anonymous. This might involve adding a check to see if the user is anonymous before trying to access the id attribute, or modifying the logic to handle anonymous users differently.
Unfortunately, I couldn't find specific information about the attributes or methods of the AnonymousUserMixin class in the RAGFlow codebase. You might need to look into the class definition directly to understand its structure and intended use.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
Do you have error log stack?
Why do you uncomment this line app.config["LOGIN_DISABLED"] = True?
All the data resource is bind to a certain login user.