-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
整理了一下#476 关于请求错误的问题(proxy) #492
Comments
@superlbr
|
赞!整理地很细致,我找时间看下这个问题。 |
这个问题对ANT的upload组件有影响。服务端直接获取不到值了。 |
upload走的应该是formdata,应该不会有关系吧? |
@xiaohuoni 在没升级之前是没有问题的。现在我在服务端直接取不到值了, |
相关问题,sorrycc/roadhog#689 |
测试后发现是把 mock 提到 proxy 之前引起的, |
没使用umi ,post请求 后台接受不到参数,为null 。没有一直处于pending状态 就是后台接受不到参数
` 'POST /portal/api/process/saveSp.jhtml': (req, res) => {
},` Content-type 分号的也试了 没起作用 |
@xiaohuoni 问一下 没有使用umi, antd 的post请求后台也获取不到参数(也没有pending) 请问什么情况?怎么解决? 是哪个地方代理配置有问题嘛 |
* refactor(plugins): 🎨 css related plugin only run in dev or build * refactor: 🎨 move "if" into onStart hook to make plugin behavior stable * refactor: 🎨 use onBeforeCompiler instead of onStart Co-authored-by: pshu <[email protected]>
…js#492) * refactor(plugins): 🎨 css related plugin only run in dev or build * refactor: 🎨 move "if" into onStart hook to make plugin behavior stable * refactor: 🎨 use onBeforeCompiler instead of onStart Co-authored-by: pshu <[email protected]>
#476
重现例子 https://github.com/xiaohuoni/umi-proxy-issue
问题表现:
使用proxy
GET 表现正常,先有一个pending,然后请求响应了
POST 没带分号 一直在pending 直到超时
Provisional headers are shown
"Content-type": "application/json; charset=UTF-8"
POST 带分号
"Content-type": "application/json; charset=UTF-8;"
返回数据是不使用proxy
POST 带分号
"Content-type": "application/json; charset=UTF-8;"
返回数据是POST 没带分号
"Content-type": "application/json; charset=UTF-8"
返回数据是不使用umi
没使用umi,和没使用proxy时表现是一致的,可以查看index.html文件
The text was updated successfully, but these errors were encountered: