-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Taro.request,http状态码非200时,会走到fail方法,且参数没有返回http状态码 #9983
Comments
taro-bot2
bot
added
F-react
Framework - React
T-h5
Target - 编译到 H5
V-3
Version - 3.x
labels
Aug 5, 2021
+1 |
+1 |
+1 |
1 similar comment
+1 |
This was referenced Aug 23, 2022
Closed
17 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: Chrome92
使用框架: React
复现步骤
一个普通的post请求,http状态码为422,直接走到fail回调函数里。然后打印回调函数参数error,并没有http的状态码和接口返回的data数据,无法捕获状态码和返回数据
期望结果
返回 httpStatus 和 responseData
实际结果
环境信息
补充信息
我觉得问题出现,错误对象中目前不包含http状态嘛和响应data,这个在业务中是需要的
The text was updated successfully, but these errors were encountered: