Fiddler Classic not executing script (Custom Rules) file

2 Answers 604 Views
Fiddler Classic
E
Top achievements
Rank 1
Iron
E asked on 01 Sep 2022, 03:13 AM

I have tried to run code and output log messages from OnWebSocketMessage() and OnBeforeResponse() but its not being apparently executed and no messages are in Log tab at all... so it just seems like its not even executing script file

 


 

2 Answers, 1 is accepted

Sort by
0
Accepted
E
Top achievements
Rank 1
Iron
answered on 06 Jan 2023, 06:59 PM | edited on 06 Jan 2023, 07:01 PM

It appears that I had bad Proxy settings, I believe I re-installed Fiddler Classic and fix Proxy settings, then it worked again.

Thanks for responses..

0
Nick Iliev
Telerik team
answered on 01 Sep 2022, 09:14 AM

Hi E R,

 

Ensure you are using the FiddlerScript log functionality http://fiddler.wikidot.com/logging 

FiddlerObject.log("Your message here");

 

 

Regards,
Nick Iliev
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


E
Top achievements
Rank 1
Iron
commented on 01 Sep 2022, 08:19 PM

Hi Nick,

 

Thanks for response... could there be a Proxy issue then? I still not getting anything from script file. I am able to see HTTP(s) traffic...

Nick Iliev
Telerik team
commented on 02 Sep 2022, 08:49 AM

Given that you can capture HTTPS traffic indicates that the proxy is working as expected. Check if you have active filters or if custom logic in the mentioned events (OnBeforeResponse & OnWebSocketMessage) prevents reaching the code you expect to execute. Ensure that you save your changes to the FiddlerScript file while using the Save button after introducing the code changes.

You could test the execution with the most basic example:

static function OnBeforeResponse(oSession: Session) {
    FiddlerObject.log(">>>>>>>>>>>> URL:" + oSession.fullUrl);
}

E
Top achievements
Rank 1
Iron
commented on 06 Jan 2023, 07:02 PM

Thanks Nick!
Tags
Fiddler Classic
Asked by
E
Top achievements
Rank 1
Iron
Answers by
E
Top achievements
Rank 1
Iron
Nick Iliev
Telerik team
Share this question
or