简体   繁体   中英

Failed to load resource: net:: ERR_CONNECTION_REST

I need to get large data from database using Ajax web call. Upto 20000 records the ajax call working fine, But when the record count is more than 20k it showing the error "Failed to load resource: net:: ERR_CONNECTION_REST" in console.

There is no error in DL method.

And here is the ajax call code:

$.ajax({
            type: "POST",
            url: serviceUrl,
            async: false,
            data: JSON.stringify(Data);,
            contentType: "application/json", // content type sent to server
            dataType: "json", //Expected data format from server
            processdata: true,
            success: function (data) {//On Successfull service call
                bSuccess = true;
                //Success code here
            },
            error: function (jqXHR, textStatus, errorThrown) {
                //Error code here
            }
});

please help me to clear the error.

How large is each record?

My first guess would be the size of the request. What kind of server are you using? If it's hosted in IIS you should check the maxAllowedContentLength in web.config.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM