Https Trace Tool For Logic Apps Standard
Published Dec 18 2023 03:03 AM 2,201 Views

Enhancing Logic Apps Debugging with HttpTraceForLogicApps

Continuing from my previous article on HTTPS Endpoint Troubleshooting in Logic App Standard, I introduce a new tool: HttpTraceForLogicApps.

Understanding EventListener in C#

The EventListener class in C# is a powerful tool for monitoring and debugging. It allows applications to subscribe to internal events, particularly useful for tracing HTTP requests in .NET Core. By implementing custom listeners, developers can gain insights into the internal workings of their applications. For more detailed information, check out Microsoft's documentation on EventListener and this guide on using EventListener for performance monitoring.

Running HttpTraceForLogicApps

The tool is designed to be run in the Kudu console. Here's a quick guide on how to get it up and running:

  1. Clone the repository from GitHub.
  2. Navigate to the Kudu console of your Logic App.
  3. Run the tool to start tracing HTTP requests.

 

 

 

git clone https://github.com/mbarqawi/HttpTraceForLogicApps.git
Cd HttpTraceForLogicApps
dotnet publish
Cd bin\Release\net8.0\publish
HttpsTrace.exe https://wrong.host.badssl.com/ >ssl.json

 

 

 

the Result will be stored in a text file. 

 

Mohammed_Barqawi_2-1702640594332.png

 

results from the captured log  where the error is RemoteCertificateNameMismatch

 
Mohammed_Barqawi_1-1702640365196.png

Removing the tool 

If you like to remove the tool after using it 

go to the CMD in Kudu and run the below command. 

rmdir /S  HttpTraceForLogicApps
HttpTraceForLogicApps, Are you sure (Y/N)? y

Common Certificate Errors in Logic Apps

When working with Logic Apps, you might encounter certificate-related issues such as custom certificate (CS) errors or hostname mismatches. These issues can be tricky, but understanding their root causes is key to resolving them.

 

Conclusion

HttpTraceForLogicApps is a step forward in simplifying the debugging process for Logic Apps. By leveraging the EventListener in C#, it provides a clear view of HTTP traffic, aiding in the quick resolution of issues.

Co-Authors
Version history
Last update:
‎Dec 18 2023 02:38 AM
Updated by: