How to hide sessions with resposeCode 504 ?

1 Answer 28 Views
Fiddler Classic
zl
Top achievements
Rank 1
zl asked on 11 Feb 2024, 01:26 AM

Hi, i have lots of error sessions with responseCode 504 which boring,and i try:

 

if(oSession.responseCode == 504){

    oSession["ui-hide"]="true";

}

it doesn't work any all.

Can someone help me,please

ps:

the fiddler log shows some thing special:

Fiddler.Network.ProtocolViolation - [#6691] The Request's Host header did not match the URL's host 

URL Host: connpm.gj.qq.com:47873
Header Host: connpm.gj.qq.com

and the req headers are:

POST http://connpm.gj.qq.com:47873/q.cgi HTTP/1.1
Host: connpm.gj.qq.com:47873
Connection: Keep-Alive
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)
Accept: */*
Content-Type: application/octet-stream
Content-Length: 430
ProxyConnection: Keep-Alive
Pragma: no-cache

......

1 Answer, 1 is accepted

Sort by
0
Accepted
Nick Iliev
Telerik team
answered on 12 Feb 2024, 07:28 AM

Hello ZL,

 

You can explicitly instruct Fiddler not to warn you of the protocol violations through the Tools > Options > If protocol violations are observed > Do nothing option. That will clear the warnings related to


As for status 504, which is a gateway timeout - this is a case where the session is already shown in the Fiddler's UI, so it is already too late to hide it. If you are aware that a specific endpoint is the one that is spawning the 504s, the you could hide it while using the host name or a specific search term and using the onBeforeRequest event (or even the filters).

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

zl
Top achievements
Rank 1
commented on 13 Feb 2024, 04:22 AM

Thank you so much!!
Tags
Fiddler Classic
Asked by
zl
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or