zoukankan      html  css  js  c++  java
  • Javascript Error: 11233 Content-Length mismatch

    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 key words on web, but no any clues to root cause. Here is the script:


    function ShowRatePopUP() {
    ratePopUpLinkButton = document.getElementById(ratePopUpLinkButtonId);
    if (ratePopUpLinkButton) {
    ratePopUpLinkButton.click();
    }
    }

    This is a simple function to access on server function "ratePopUpLinkButton.click();" , but why Content-Length in header is different with that client sent?

    The root cause is "Response Confiliction". ShowRatePopUP() didnt return false, that inform the server side it will also need to request to server side. But ratePopUpLinkButton.click(); is also request to server side. Therefore just return false, fixed.


    function ShowRatePopUP() {
    ratePopUpLinkButton = document.getElementById(ratePopUpLinkButtonId);
    if (ratePopUpLinkButton) {
    ratePopUpLinkButton.click();
    }

    return false;
    }

  • 相关阅读:
    MySQL集群常见高可用方案(转)
    upsource使用
    Hystrix 使用
    astah UML 先画图、后编程
    java ThreadLocal 使用
    Java基础 Annotation使用
    LVS+Keepalived+Nginx+Tomcat高可用负载均衡集群配置
    招聘求职学习
    Rotate List 面试题
    vue前台(四点二)
  • 原文地址:https://www.cnblogs.com/narkissos/p/4577645.html
Copyright © 2011-2022 走看看