场景:一次迭代在灰度环境发版时,测试反馈说我开发的那个功能,查询接口有部分字段数据是空的,后续排查日志,发现日志如下: feign.RetryableException: cannot retry due to redirection, in streaming mode executing POST 下面是业务.环境和分析过程下面是业务.环境和分析过程: 接口的业务场景 :我这个接口类似是那种报表统计的接口,它会请求多个微服务,把请求到的数据,统一返回给前端,相当于设计模式中的门面模式了. 后
import axios from "axios"; import qs from "qs"; //处理参数 import router from '../router'; import { Loading } from 'element-ui'; import { Message } from 'element-ui'; let loading = null; //开始加载动画 function openLoading(){ loading = Loading.s
今天发现 AngularJS 框架的$http服务提供的$http.get() /$http.post()的ajax请求中没有带 x-requested-with字段. 这样的话,后端的php 就无法判断 接受的http请求是否是 ajax请求了. 怎么办呢,显然就是给http 请求头中 加上这个字段就可以了. 1.AngularJS 中可以这样子: I don't know well MVC3 but you can set a custom header for all request fr