如果我用 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 (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...