当'Status =(failed)'和'Type = undefined'时,Chrome遇到什么类型的网络错误 [英] What kind of network error is Chrome encountering when 'Status = (failed)' and 'Type = undefined'

查看:1221
本文介绍了当'Status =(failed)'和'Type = undefined'时,Chrome遇到什么类型的网络错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候,我随机看到来自Chrome的网络请求失败,状态=(失败)(JavaScript中的请求对象的状态代码为0),响应类型为未定义。我不能孤立为什么,我的互联网连接似乎是up和服务器上的相同端点工作,如果要求从cURL。

Sometimes I randomly see network requests from Chrome failing with Status = '(failed)' (status code 0 from the request object in JavaScript) and the response type as 'undefined' . I cannot isolate why, my internet connection seems to be up and the same endpoint on the server works if requested from say cURL.

查看请求详情不会再显示任何回复信息,只显示请求信息。

Viewing the request details does not show any more response information, only the request info.

可能缺少CORS头,但我已经验证他们在那里,反正对CORS权限问题Chrome报告状态为(已取消)。

I thought it might be missing CORS headers, but I have verified they are there and anyway on a CORS permission problem Chrome reports the status as '(cancelled)'.

任何想法?是只是主机是不可达的?为什么在重新启动浏览器之前,网络应用程序的所有重试都会失败?

Any thoughts? Is it just that the host is unreachable? Why does it seem that all retries from the web app also fail until the browser is restarted?

推荐答案

在广告服务网络上。最终,AdBlock Plus Chrome扩展程序阻止了任何资源,可能是路径中的广告。我将我的网域列入白名单,并且有效。

I ran into this while working on an ad serving network. It ended up being the AdBlock Plus Chrome extension blocking any assets, probably the "ad" in the path. I whitelisted my domain and it worked.

这篇关于当'Status =(failed)'和'Type = undefined'时,Chrome遇到什么类型的网络错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆