umi-request icon indicating copy to clipboard operation
umi-request copied to clipboard

A request tool based on fetch.

Results 103 umi-request issues
Sort by recently updated
recently updated
newest added

后台要求传递签名,并且给了签名生成的方法,用RSA签名参数,这种需求umi-request如何实现?

post 使用form-data方式转化有点问题的. 1.不支持三级对象. 2.数组会丢失,自动转成对象. 如,{cheked:[1,2,3]} 会转化成 checked:1 && checked:2 checked:3 ,应该是 checked[]:1 && checked[]:2 checked[]:3 3.json字符串,自动转成对象,我要的传字符串. 如 {mjson:"{a:11.b:22}"} 自动转成 mjson:object 这些都不是友好的使用方式. post,put 请求类型处理太暴力了,请求类型有,"form-data","x-www-form-urlencoded","raw","binary" raw 分 "json","text","html","javascript","xml" 然而umi-request 只支持 "form" ||...

在开发中发现了这个兼容问题,文章里作了描述,也提出了对应的修改方法 https://juejin.cn/post/7005876555863818277

umi-request has reach 18.6k already

### Reproduction link [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/use-default-umi-request-forked-e33e5?file=/demo.tsx) ### Steps to reproduce 1.点击002request timeout 为默认设置的30000 2.点击001request timeout 设置为200 3.点击003request timeout 设置为200 ### What is expected? 希望点击003request时,timeout还是30000 ### What is actually happening? 点击003request...

文档:https://www.npmjs.com/package/umi-request#file-upload const formData = new FormData(); formData.append('file', file); request('/api/v1/some/api', { method:'post', data: formData }); 应用环境 Web 正常 android、ios safari 下也正常 ios 钉钉内打开链接 异常 不指定Content-Type 传递 new FormData() 会被指定为 application/json android...

测试发现未配置"5. For the status code is actually 200 errors," errorHandler能正常接收到404 500错误. 配置了request.interceptors.response.use后,errorHandler中error返回为underfind ![image](https://user-images.githubusercontent.com/15940920/59974546-fe683a80-95df-11e9-821c-c8325bf5224b.png)

在一个接口中后端使用了雪花算法生成19位long类型的id,使用umi-request方法请求回来的数据后三位精度丢失了,最后两位全部转成了00,使用postman请求没有问题

profix在Mac系统下无效,在windows系统下正常,换了ant pro的写法也是一样。 version:1.3.8 ![image](https://user-images.githubusercontent.com/20121275/126417645-a71a8d9f-9bd1-4574-b10c-f8586098e4ed.png)