Skip to main content

Bug Tracker

Side navigation

#6144 closed bug (invalid)

Opened February 22, 2010 05:27AM UTC

Closed February 23, 2010 04:48AM UTC

Last modified March 07, 2010 03:35PM UTC

ajax success broken

Reported by: tuomo Owned by:
Priority: Milestone: 1.4.2
Component: ajax Version: 1.4
Keywords: Cc:
Blocked by: Blocking:

Hello. I use jQuery ajax request in this way:

function sendData(url, callback)


var values = getPageData();

var encoded = $.toJSON(values);


type: "POST",

url: url,

data: encoded,

success: callback,

dataType: "json"});


With very large responses(>100kB) the success function is never called. If response is small, the success function works fine. I don't have any problems with jQuery 1.3.2, the problem is with versions 1.4.2 and 1.4.1

Attachments (0)
Change History (6)

Changed February 22, 2010 05:32AM UTC by john comment:1

resolution: → invalid
status: newclosed

It's likely because your JSON is malformed, more information here:

Changed February 23, 2010 04:44AM UTC by tuomo comment:2

resolution: invalid
status: closedreopened

Changed February 23, 2010 04:48AM UTC by john comment:3

resolution: → invalid
status: reopenedclosed

Uhh - why was this reopened? Please don't reopen the ticket unless you have something to add.

Changed February 23, 2010 04:50AM UTC by tuomo comment:4

I'm pretty sure that my JSON is valid. I pasted my server result to JSON validator, and the test passed.

There is my server response, this is the valid JSON string. And I can't get it work with jQuery 1.4.2, with 1.3.2 it works fine!

I can send my problematic server response to you with mail...

Changed February 23, 2010 05:14PM UTC by tuomo comment:5

You were right John. My JSON is malformed.

Changed March 07, 2010 03:35PM UTC by andras comment:6

Please, check if there's an error. I was parsing strings like "\\xFA" which is invalid JSON. Correct version is "\\u00FA". An exception wasn't being thrown and success function wasn't being called either.