On Mon, Jun 30, 2014 at 12:06 PM, Zeck Li <[email protected]> wrote:

> I built an Java application for myself on GAE. Major task of this
> application is to get the content of a contenteditable element and then
> examine the content. And the code goes like this :
>
> var data = { "content" : clearTag(element.html()) };
> $.get("/xxx/check", data, function(json) {
>     }, "json").fail(function() { }).always(function() {  });
>
> After I deployed this application on GAE, I always got error 400 ( Your
> client has issued a malformed or illegal request. ) when I had typed too
> much words and sent the request. And the shorter articles always succeeded.
> It seems that the length of the content reach specific limit will get this
> error. But it worked well on localhost no matter how the length of the
> content.
>


If you shift to using .post ( http://api.jquery.com/jquery.post/ ) does the
function now work? Does App Engine logging show any more detailed error
messages on the server side? Can you narrow down the length breakpoint
between the request succeeding and the request failing?


-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to