-
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 失败情况小程序和H5不一致 #4679
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
CC @Littly |
暂时可以试试 taro-axios:https://github.com/fjc0k/taro-axios |
我发现这个问题是从最近的版本才出现的,因为我升级把一个H5项目升挂了…… |
解决方案哈,希望对您有帮助。
|
@Yuebanfuxiao 谢谢,处理谁都会处理,我报告的是 API 行为不一致。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
小程序只要请求网络成功,不管status code,都会成功。
而现在 h5 里边 Taro.request 在非2xx的时候会失败
虽然可以写两遍http状态码的处理,但是还是太麻烦了。
The text was updated successfully, but these errors were encountered: