Fiddler - ReadResponse failed: The server did not return a response for this request

前端 未结 5 593
谎友^
谎友^ 2020-12-19 14:29

This was the first time I encountered this kind of error after dealing with RESTful web service in couple of times. I find it hard to trace the cause of error, hope you coul

5条回答
  •  一整个雨季
    2020-12-19 14:52

    I have faced the same problem. Finally, found the issue in defining the Contract type for the return object.

    I have replaced [DataMember] to [EnumMember] as described below:

    [DataContract]
    public enum DiscountType
    {
        [EnumMember]
        NONE = 0,
        [EnumMember]
        PERCENTAGE_DISCOUNT = 1
    }
    

    This fixed my "[Fiddler] ReadResponse() failed" error which took my half day effort.

提交回复
热议问题