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:
- 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
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.
-
Save
-
Windows Start > Services.msc > Restart Robot Service
-
Download and install (as Admin) Fiddler Classic
-
Open Fiddler
-
Tools > Options
-
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: -
Set the Connections Tab to the following configuration
-
Restart Fiddler
-
Open the Assistant and wait for a connection.
-
Once it is connected, transactions can be seen (Heartbeats, SignalR etc.)
-
To save, go to File > Save > All Sessions and save it as .saz
- Restore the uipath.config file with the backup copy
- 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
- Click OK
- Click Yes
- Click OK
- Click Yes
- Click OK
- Click No
- Click Cancel