How To Use Fiddler As A Proxy For The Robot Service To Collect Information?

How to use Fiddler as a proxy for the Robot Service to collect information?

Check whether the Robot is installed in service or user mode with the following command:

sc query "UiRobotSvc" | find /i "failed" 2>&1>nul && echo.'UiPath Robot service is not installed' || (sc query "UiRobotSvc"| find /i "running" 2>&1>nul && echo.UiPath Robot service %RobotVersion% is Running || echo.UiPath Robot service %RobotVersion% is Stopped)


Troubleshooting specific issues involves identifying what exactly the Robot service sends as transactions to Orchestrator. To view these transactions, use Fiddler as a proxy between the Robot Service and Orchestrator.

Follow the below steps below to configure and track the transactions:

  1. Identify a config file to edit. The file to be edited depends on the robot version. Create a backup for the selected file before continuing with the editing process.

  • 2019.10 or earlier
    • UiPath.Service.Host.exe.config in C:\Program Files (x86)\UiPath\Studio

  • 2020.4 and 2020.10
    • proxy.config in C:\Program Files (x86)\UiPath\Studio
Follow the below Steps to Edit the file

2020.10 and before
Uncomment the section and add the localhost as a proxy

    
        
    

2021.4 and higher
Edit the uipath.config file: Using Proxy Address
Add the tag and set the following text.


  1. Save

  2. Windows Start > Services.msc > Restart Robot Service

  3. Download and install (as Admin) Fiddler Classic

  4. Open Fiddler

  5. Tools > Options

  6. Set the HTTPS tab to the following configuration. Ensure Decrypt HTTPS traffic is checked. If these steps aren't followed, the trace file will not be useful.


    Click Yes:

    Fiddler Cert

    Security warning

    fiddler3.png

    TrustCert Success

  7. Set the Connections Tab to the following configuration

  8. Restart Fiddler

  9. Open the Assistant and wait for a connection.

  10. Once it is connected, transactions can be seen (Heartbeats, SignalR etc.)

  11. To save, go to File > Save > All Sessions and save it as .saz

  12. Restore the uipath.config file with the backup copy
  13. Restart the Robot service


Steps to Remove the Certificate Installed in Prior steps:

  • Go to Tools > Options > HTTPS tab
  • Click the Action button and click Reset All Certificates
reset certs
  • Click OK
reset2.png
  • Click Yes
reset3.png
  • Click OK
reset4.png
  • Click Yes
reset5.png
  • Click OK
reset6.png
  • Click No
scarytext.png
  • Click Cancel
reset7.png
2 Likes

A post was split to a new topic: Fiddler As A Proxy For The Robot Service To Collect Information