-
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 500错误无法拦截 #11518
Comments
等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你! Thank you so much! |
类似错误 #3017 |
|
并且如果是500错误 ,err也无法查看到response的内容 |
H5平台 Taro.request 500错误,直接走的是fail,和小程序不同。小程序类似404,500,502等请求都会success |
是走的错误,但是无法查看到response
…------------------ 原始邮件 ------------------
发件人: qing-zhi ***@***.***>
发送时间: 2022年4月19日 17:42
收件人: NervJS/taro ***@***.***>
抄送: 叫我小胡同学 ***@***.***>, Author ***@***.***>
主题: Re: [NervJS/taro] Taro.request 500错误无法拦截 (Issue #11518)
H5平台 Taro.request 500错误,直接走的是fail,和小程序不同。小程序类似404,500,502等请求都会success
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
我使用的 3.4.3 也出现这样的问题,希望小程序和H5触发 success 和 fail 表现一致。 const option = {
...
fail: (res) => {
console.log(res)
},
success: (response) => {
console.log("success", response)
}
}
Taro.request(option) 服务端返回 403 等状态码: |
遇到同样问题, v3.4.11 |
duplicate #9983 |
遇到同样的问题,请问解决了没有? |
开发者说了,自己封装。。。 |
相关平台
H5
复现仓库
https://github.com/TigerHee/taro-request
浏览器版本: Chrome 62
使用框架: React
复现步骤
Taro.request 500错误,直接走的是fail,和小程序不同。小程序类似404,500,502等请求都会success
期望结果
如何保持一致
实际结果
h5拦截器与小程序不一致
环境信息
The text was updated successfully, but these errors were encountered: