-
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
http401错误不进入catch分支 #437
Comments
404也不进入呀,这样的设计很不合理。 |
有啥不合理的,400以上代码是一大类 |
自己封装一个request吧,把code不是200多的请求都throw error |
@zacksleo 支付宝下401是走的catch,太坑了 |
反人类设计 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述



访问一个接口,接口返回401错误,这时候Taro.request的catch并没有触发,而是进入了正常的then流程。
期望行为
401错误应该进入catch分支
报错信息
[这里请贴上你的完整报错截图或文字]
系统信息
The text was updated successfully, but these errors were encountered: