NETWORK_ERROR: XMLHttpRequest Exception 101

后端 未结 7 2083
南旧
南旧 2020-11-30 07:45

I am getting this Error

NETWORK_ERROR: XMLHttpRequest Exception 101

when trying to get XML content from one site.

Here

7条回答
  •  孤街浪徒
    2020-11-30 08:06

    Request aborted because it was cached or previously requested? It seems the XMLHttpRequest Exception 101 error can be thrown for several reasons. I've found that it occurs when I send an XMLHttpRequest with the same URL more than one time. (Changing the URL by appending a cache defeating nonsense string to the end of the URL allows the request to be repeated. -- I wasn't intending to repeat the request, but events in the program caused it to happen and resulted in this exception).

    Not returning the correct responseText or responseXML in the event of a repeated request is a bug (probably webKit).

    When this exception occurred, I did get an onload event with readyState==4 and the request object state=0 and responseText=="" and responseXML==null. This was a cross domain request, which the server permits.

    This was on an Android 2.3.5 system which uses webKit/533.1

    Anyone have documentation on what the exception is supposed to mean?

提交回复
热议问题