Skip to content
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

AttributeError: 'NoneType' object has no attribute 'data' #56

Open
Abcold opened this issue Apr 11, 2021 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'data' #56

Abcold opened this issue Apr 11, 2021 · 1 comment

Comments

@Abcold
Copy link

Abcold commented Apr 11, 2021

项目已经运行起来,但点登录出现500错误
后台:
File "C:\Users\Documents\VueDjangoAntdProBookShop\tyadmin_api\custom.py", line 34, in custom_exception_handler
response.data = {"none_fields_errors": response.data}
AttributeError: 'NoneType' object has no attribute 'data'
[11/Apr/2021 20:47:00] "POST /api/xadmin/v1/login/account HTTP/1.1" 500 26215

@a81608882
Copy link

a81608882 commented Apr 16, 2021

缺少模块 往上翻还有日志 找到ModuleNotFoundError: No module named 'xxxxx' 看XXXX是哪个pip install xxxx安装 应该是requests_oauthlib

@mtianyan mtianyan reopened this Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants