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

异常信息格式 #205

Open
weakish opened this issue Apr 15, 2020 · 1 comment
Open

异常信息格式 #205

weakish opened this issue Apr 15, 2020 · 1 comment

Comments

@weakish
Copy link
Contributor

weakish commented Apr 15, 2020

目前异常包含 Request 信息,包括其中的 request body。

abo 在论坛上建议只返回 code 和 error message:https://forum.leancloud.cn/t/php-sdk/22242

js-sdk 目前除了 code 和 error message 外还返回 method 和 url,但不包含 request body。

@yb
Copy link

yb commented Apr 15, 2020

建议 code 和 message 和 body 并存,各取所需,并且统一各 SDK 的规范。截取字符串的方法我觉得不美丽。
PS. 我就是论坛里的 abo,论坛里两个月没人回复,还是在 github 跟踪这个 feature 吧

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

2 participants