如何解决如果我用 axios post 发送相同的数据 29 次,只有在前两次提交时发生错误
for (var ix=1;ix < 30;ix++){
axios.post(this.props.urlBase + 'Comanda',xxx,this.props.basicAuth)
.then((response) => {console.log("POST",response)})
.catch(ex => {
console.log(cx,ex);
});
}
调试:
{} 错误:网络错误 在 createError (c:\REACT\comande\node_modules\axios\lib\core\createError.js:16:1) 在 XMLHttpRequest.handleError (http://localhost:8100/static/js/vendors~main.chunk.js:11833:14) {配置:{…},请求:XMLHttpRequest,响应:未定义, isAxiosError: true,toJSON: ƒ,…} arg0:{} arg1:Error: 网络错误 在 createError (http://localhost:8100/static/js/vendors~main.chunk.js:12339:15) 在 XMLHttpRequest.handleError (http://localhost:8100/static/js/vendors~main.chunk.js:11833:14) {配置:{…},请求:XMLHttpRequest,响应:未定义, isAxiosError: true,…} config:{url: 'https://cloud.touristorganizer.com/wstourx/Comanda',方法:'post', 数据: '{"DATA":"2021-04-06","ORA":"16:24:44","TAVOLO"...":0,"PREPARATO":0,"MODIFICATO":-1,"numrig" :2}',标头:{...},transformRequest:Array(1),...} isAxiosError:true 消息:'网络错误'
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。