This is a migrated thread and some comments may be shown as answers.

How to hide error code sessions?

2 Answers 338 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
peng
Top achievements
Rank 1
peng asked on 25 Aug 2020, 08:13 AM

Hi All, 

I'm using Fiddler 5.0.2.   And filter rules were set to make Fiddler show only specific Hosts session.  However, the rules does not work for error code session. All error code sessions, no matter what its host is, will be displyed in session window. Such as 404 code and 504 code. How can I solve it?

Any help is highly appreciated.Thanks in advance.

 

2 Answers, 1 is accepted

Sort by
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 27 Aug 2020, 07:30 PM

Hi Peng,

The Filters Tab is used for more common scenarios as described in the Filters documentation. For more flexibility and control, it is recommended to use the Custom Rules engine.

Try to hide errors from the UI by the hostname similar to below. This method would be placed in the OnBeforeResponse event.

if (oSession.hostname == "example.com" || oSession.responseCode == 404) {
    oSession["ui-hide"] = "true";	
}

Please let me know if this works for your scenario. Thank you for using the Fiddler Forums.

Regards,

Author nickname
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

0
peng
Top achievements
Rank 1
answered on 28 Aug 2020, 08:50 AM

Hi, Eric,

I really appreciate it for your great help. I followed your instructions and the problem has been solved!Thanks.

Best Regards,

Peng

Tags
Fiddler Classic
Asked by
peng
Top achievements
Rank 1
Answers by
Eric R | Senior Technical Support Engineer
Telerik team
peng
Top achievements
Rank 1
Share this question
or