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

request无法处理非200的请求 #10789

Closed
jianhao2010303 opened this issue Dec 1, 2021 · 1 comment
Closed

request无法处理非200的请求 #10789

jianhao2010303 opened this issue Dec 1, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@jianhao2010303
Copy link

相关平台

H5

复现仓库

https://github.com/github/fetch
浏览器版本: Chrome 96
使用框架: React

复现步骤

request无法处理非200的请求。设计实现的拦截器可有可无,根本无法达到拦截器的诉求。

期望结果

https://github.com/github/fetch,支持状态码非200的请求

实际结果

request 不支持自定义response handler

环境信息

  Taro CLI 3.3.15 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.18.1 - D:\Node\node.EXE
      Yarn: 1.22.11 - D:\Node\node_global\yarn.CMD
      npm: 6.14.15 - D:\Node\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Dec 1, 2021
@ZakaryCode ZakaryCode added the duplicate This issue or pull request already exists label Aug 23, 2022
@taro-bot2 taro-bot2 bot closed this as completed Aug 23, 2022
@ZakaryCode
Copy link
Contributor

duplicate #9983

@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

2 participants