What does status=canceled for a resource mean in Chrome Developer Tools?

前端 未结 30 1671
温柔的废话
温柔的废话 2020-11-22 11:13

What would cause a page to be canceled? I have a screenshot of the Chrome Developer Tools.

\"Canceled

相关标签:
30条回答
  • 2020-11-22 11:48

    I got this error in Chrome when I redirected via JavaScript:

    <script>
        window.location.href = "devhost:88/somepage";
    </script>
    

    As you see I forgot the 'http://'. After I added it, it worked.

    0 讨论(0)
  • 2020-11-22 11:48

    It happened to me when loading 300 images as background images. I'm guessing once first one timed out, it cancelled all the rest, or reached max concurrent request. need to implement a 5-at-a-time

    0 讨论(0)
  • 2020-11-22 11:49

    I have embedded all types of font as well as woff, woff2, ttf when I embed a web font in style sheet. Recently I noticed that Chrome cancels request to ttf and woff when woff2 is present. I use Chrome version 66.0.3359.181 right now but I am not sure when Chrome started canceling of extra font types.

    0 讨论(0)
  • 2020-11-22 11:50

    Here's what happened to me: the server was returning a malformed "Location" header for a 302 redirect. Chrome failed to tell me this, of course. I opened the page in firefox, and immediately discovered the problem. Nice to have multiple tools :)

    0 讨论(0)
  • 2020-11-22 11:50

    In my case the code to show e-mail client window caused Chrome to stop loading images:

    document.location.href = mailToLink;
    

    moving it to $(window).load(function () {...}) instead of $(function () {...}) helped.

    0 讨论(0)
  • 2020-11-22 11:51

    For anyone coming from LoopbackJS and attempting to use the custom stream method like provided in their chart example. I was getting this error using a PersistedModel, switching to a basic Model fixed my issue of the eventsource status cancelling out.

    Again, this is specifically for the loopback api. And since this is a top answer and top on google i figured i'de throw this in the mix of answers.

    0 讨论(0)
提交回复
热议问题