Chrome XmlHttpRequest Hanging

前端 未结 1 639
南旧
南旧 2021-02-02 03:49

When I make a XmlHttpRequest (via jQuery\'s $.ajax) to a particular URL, my Chrome consistently hangs every time with a status on the request of \'Pending\'.

After that

相关标签:
1条回答
  • 2021-02-02 04:29

    I'm experiencing similar behavior with slightly different symptoms. My ajax requests work fine, every second request up to 6 requests, then they all start failing (same url as when working, same payload, etc), but in my case they're not even hitting the server, just stuck in "Pending" in Inspector.

    I dont have an answer for you, but to help debug, have you tried chromes net-internals?

    Point your browser at:

    chrome://net-internals/#sockets
    

    and/or

    chrome://net-internals/#events
    

    I see my requests in #sockets go into "active", but never come back, and in #events I can see that the request stalls after the HOST_RESOLVER_IMPL_REQUEST stage.

    I'm thinking it could be a resource issue caused by not properly ending the request, but thats just pure speculation.

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