Comments (6)
版本:3.0.8
环境:uniapp最新版编译为h5,edge浏览器运行
from luch-request.
我用demo 测试没有复现。
检查一下请求拦截器内部是不是出问题,promise 中出现异常,会进入catch。
可以试试 新new 一个实例,看请求是否发出
如果确认自己代码没问题,可以考虑提供可复现的demo 或者,加qq 私发一些关键代码
from luch-request.
你好。我这边检查了一下,代码逻辑层面没得毛病,发现主要问题在于访问的url不存在的情况就出现这种,服务器返回404,就进入到了response的error中没问题,奇怪的是参数全部都是发送前的配置参数,这一点是否是属预期之内的效果呢
from luch-request.
参数全部都是发送前的配置参数
这个啥意思?
from luch-request.
意思是指进入到响应拦截器中的错误逻辑时,收到的参数内容等同于请求拦截器中的config。
from luch-request.
无法复现,提供可复现的demo
from luch-request.
Related Issues (20)
- 在请求之前拦截中执行 return Promise.reject(config) 取消请求,network中没有,但该请求最终还是执行了then逻辑 HOT 2
- TypeError: Cannot read property 'indexOf' of undefined
- 请求参数类型 HOT 1
- 请求中断问题
- 关于luch-request全平台通用的问题 HOT 1
- err TypeError: relativeURL.replace is not a function HOT 2
- 【BUG】当 baseURL 为空时,请求 url 开头为 https://,实际请求 url 会变成本地 + https:// HOT 1
- 支持http2请求吗, HOT 4
- 后台返回流下载ecxel 下出来的文件会提示损坏 HOT 10
- 文档建议更新,比如安装和使用方式 HOT 2
- ts声明文件中方法返回值类型写死了,跟响应拦截器的返回值有冲突 HOT 3
- dataType设置成string,返回数据还是json HOT 1
- interceptors.response.use 参数内的header有丢失 HOT 2
- luch-request支持快手小程序吗 HOT 3
- 支持vue3吗 HOT 1
- 请求头header加不上 HOT 1
- Uni的命名空间名字换了,UniApp -> UniNamespace HOT 2
- 有没有锁住请求或者是重试接口 HOT 1
- Feat: 希望增加lock和unlock方法,拦截请求
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luch-request.