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

请求Profile接口时遇到不存在的用户时 #27

Closed
wibus-wee opened this issue Jan 18, 2022 · 1 comment
Closed

请求Profile接口时遇到不存在的用户时 #27

wibus-wee opened this issue Jan 18, 2022 · 1 comment

Comments

@wibus-wee
Copy link
Member

问题

请求Profile接口时遇到不存在的用户时,返回的报错更像是程序运行错误的表现

示例

{
    "status": 500,
    "message": "Cannot destructure property 'password' of '_a' as it is undefined.",
    "error": "Cannot destructure property 'password' of '_a' as it is undefined.",
    "url": "/api/v1/profile?user=master1"
}

虽然Filter已将报错过滤,但是Status 500更多是发出服务器问题

@wibus-wee
Copy link
Member Author

目前的设计为单用户模式
因此已将获取用户写死了

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

1 participant