Today I got a error in Fiddler:
Failed to obtain request body. System.IO.InvalidDataException the request body did not contain the specified number of bytes. Got expected
11233 content-length mismatch:request Header indicated 7,431 bytes, but client sent 0 bytes.
I Goole All keys words on the web, but no any clues to root cause. This is the script:
function Showratepopup () {
Ratepopuplinkbutton = document.getElementById (Ratepopuplinkbuttonid);
if (Ratepopuplinkbutton) {
Ratepopuplinkbutton.click ();
}
}
This was a simple function to access the server function "Ratepopuplinkbutton.click ();", but why Content-length in header I s different with that client sent?
The root cause is "Response confiliction". Showratepopup () didnt return false, that inform the server side it would also need to request to server side. But Ratepopuplinkbutton.click (); is also the request to server side. Therefore just return false, fixed.
function Showratepopup () {
Ratepopuplinkbutton = document.getElementById (Ratepopuplinkbuttonid);
if (Ratepopuplinkbutton) {
Ratepopuplinkbutton.click ();
}
return false;
}
Javascript error:11233content-length mismatch