-
Notifications
You must be signed in to change notification settings - Fork 50
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
[Bug]: Command 和 Server 返回值问题 #243
Comments
是的。当前的设计是http接口只要能返回,总会返回200,要根据response里面的状态码来判断,这个大概率不会改变 |
@wayblink 你好,我认为我的问题和http状态码没有关系,我重新描述下: |
明白了,code=0时被缺省了,没有返回code其实就是code=0,这个可以调整一下,取消缺省; 命令行状态这个之前没有考虑过,我后面研究下 |
/assign |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
Version:
$?
获取状态码时他总是 0/create
只有在失败时候才会返回code
,对程序进行异常判断非常不友好;Expected Behavior
code
,特别当我使用/create
异步备份async:true
时,期望和async:false
保持一致,通过state_code 去判断备份状态即可Steps To Reproduce
No response
Environment
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: