Note that there are some explanatory texts on larger screens.

plurals
  1. PO$.ajax (post) results in software abort request on the server side
    text
    copied!<p>Could someone please help me in identifying what is wrong with the following request. I keep getting software-abort even if on the server side I just return an empty page! That is I don't even read the contents of the post-request. When I send HTTP post request using form post method, instead of ajax, it is all good. So there is no server issue I believe.</p> <p>Thanks!!</p> <pre><code> $.ajax({ type: 'post', url: "/ajax/feedback", data: JSON.stringify(["Add","1","2"]), contentType: 'application/json', dataType: 'json', success: function(resp){ alert("Success. Server said:\n '" + resp + "'"); }, error: function(e){ alert('There is an Error: ' + e); } }); </code></pre> <p>On the server side (python-GAE) all I do is the following:</p> <pre><code>def post(self): logging.info('in post REQUEST request handler') self.response.headers['Content-Type'] = 'text/html' self.response.out.write("received!") </code></pre> <p>The error I get is as follows:</p> <pre><code>Traceback (most recent call last): File "C:\Program Files (x86)\Python25\Lib\SocketServer.py", line 222, in handle_request self.process_request(request, client_address) File "C:\Program Files (x86)\Python25\Lib\SocketServer.py", line 241, in process_request self.finish_request(request, client_address) File "C:\Program Files (x86)\Python25\Lib\SocketServer.py", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2780, in __init__ BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kwargs) File "C:\Program Files (x86)\Python25\Lib\SocketServer.py", line 521, in __init__ self.handle() File "C:\Program Files (x86)\Python25\Lib\BaseHTTPServer.py", line 316, in handle self.handle_one_request() File "C:\Program Files (x86)\Python25\Lib\BaseHTTPServer.py", line 310, in handle_one_request method() File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2794, in do_POST self._HandleRequest() File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3090, in _HandleRequest raise e error: (10053, 'Software caused connection abort') </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload