SCRIPT7002:XMLHtt prequest:网络错误0x2ef3,无法完成,由于操作错误00002ef3 [英] SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3

查看:2785
本文介绍了SCRIPT7002:XMLHtt prequest:网络错误0x2ef3,无法完成,由于操作错误00002ef3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不断收到此错误,当我做一些Ajax调用...

I keep receiving this error when I do some Ajax calls...

这甚至可能是与地理编码,但我真的不知道如何捕捉错误显示一些有用的东西给用户......甚至是如何解决这个问题,因为它似乎只是引用某种指针什么:•0x2ef3

It may even be something to do with Geocoding but I really have no idea how to capture the error to display something useful to users... or even how to solve the problem as it seems to just be referencing some kind of pointer or something :S 0x2ef3

SCRIPT7002:XMLHtt prequest:网络错误0x2ef3,不能完成由于错误00002ef3操作。

SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3.

这是图像可能比该错误信息更有帮助:

An image might be more helpful than the error message:

任何想法呢?

我的code打完第1秒10的Ajax调用由地理编码服务器端进行处理。

My code fires off 10 ajax calls in 1 second to be processed by geocoding server side.

在错误出现间歇性。有时我的地缘codeD的结果,有时我得到这个错误。我会说我得到它的时间的10%。它从发射我的错误处理程序的jQuery完全停止Ajax调用。

The error comes up intermittently. Sometimes I get geocoded results and sometimes I get that error. I would say I get it 10% of the time. It completely stops the ajax call from firing my error handler in jQuery.

推荐答案

这是为我工作的修补程序。这里是无效的MIME或发送你的JSON数据导致该errror坏的字符集。添加字符集是这样来帮助它感到困惑:

This is the fix that worked for me. There is invalid mime or bad characterset being sent with your json data causing that errror. Add the charset like this to help it from getting confused:

$.ajax({
  url:url,
  type:"POST",
  data:data,
  contentType:"application/json; charset=utf-8",
  dataType:"json",
  success: function(){
    ...
  }

参考:

<一个href="http://stackoverflow.com/questions/2845459/jquery-how-to-make-post-use-contenttype-application-json">Jquery - 如何使$。员额()使用的contentType =应用程序/ JSON

<一个href="http://stackoverflow.com/questions/10194257/could-not-complete-the-operation-due-to-error-c00ce56e">Could不完全是由于错误c00ce56e

这篇关于SCRIPT7002:XMLHtt prequest:网络错误0x2ef3,无法完成,由于操作错误00002ef3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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