Unable to capture Python Requests after Latest Update

11 posts, 0 answers
  1. humaxuyohi
    humaxuyohi avatar
    1 posts
    Member since:
    Jun 2019

    Posted 06 Jun 2019 Link to this post

    Cannot sniff python script from command-line anymore after new update.

    the script is using python-requests to make a get or post requests.

    Last seen working on v5.0.20182.28034

     

  2. Kammen
    Admin
    Kammen avatar
    381 posts

    Posted 10 Jun 2019 Link to this post

    Hello,

    Do you get any error messages, for example in the logs, that you can share in order to further investigate this?

    Regards,
    Kammen
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. rocky
    rocky avatar
    5 posts
    Member since:
    Oct 2019

    Posted 30 Oct 2019 in reply to Kammen Link to this post

    I'm getting the same problem.  Where would I look for log files that I can send you?  Yesterday, I used Fiddler (sorry, I don't know what version) to capture http traffic from a python script.  Today, Fiddler updated to "v5.0.20194.41348 for .NET 4.6.1".  Now, it doesn't capture http traffic from the same python script. 

  4. Eric R | Senior Technical Support Engineer
    Admin
    Eric R | Senior Technical Support Engineer avatar
    398 posts

    Posted 04 Nov 2019 Link to this post

    Hi Rocky,

    There are a couple of ways to get information about web sessions. The Fiddler Log Tab is the first location that provides more information about how Fiddler is operating. This located in the Right-hand Side of the GUI. See the below screen shot for a visual reference.

    Although, additional information is important for understanding the scenario. Are you able to provide the following information?

    1. Are you seeing anything in the Session Output? If so, can you select it and Export the Session as an Archive?

    2. What Operating System are you using Fiddler with?

    3. Is the Python Script only sending and receiving HTTP/HTTPS Traffic? 

    4. Are there any Python errors that are being written to the Console?

    Once I have this information I will be able to provide a more thorough response. Thank you for using the Fiddler Forums.

    Regards,


    Eric R | Technical Support Engineer
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. rocky
    rocky avatar
    5 posts
    Member since:
    Oct 2019

    Posted 04 Nov 2019 in reply to Eric R | Senior Technical Support Engineer Link to this post

    1. Are you seeing anything in the Session Output? If so, can you select it and Export the Session as an Archive?

    No.  There's nothing in the session output.
    2. What Operating System are you using Fiddler with?

    Windows 10 Enterprise
    3. Is the Python Script only sending and receiving HTTP/HTTPS Traffic? 

    Yes.  Here's a sample python script:

    import requests

    r = requests.get("http://www.google.com")

    4. Are there any Python errors that are being written to the Console?

    No

    The log tab is this:

    -= Fiddler Event Log =-
    See http://fiddler2.com/r/?FiddlerLog for details.

    14:10:32:7981 Fiddler Running...
    14:10:32:7991 AutoProxy failed. Disabling for this network.
    14:10:32:8998 Windows 8+ AppContainer isolation feature detected.
    14:10:35:7941 Assembly 'C:\Users\rocky\AppData\Local\Programs\Fiddler\CertMaker.dll' was not found. Using default Certificate Generator.

    If I use Chrome to browse the web, I see plenty of sessions in Fiddler.  The call to the requests library in python to get www.google.com however does not show up in Fiddler.  Python is running in a cmd window.

  6. Eric R | Senior Technical Support Engineer
    Admin
    Eric R | Senior Technical Support Engineer avatar
    398 posts

    Posted 04 Nov 2019 Link to this post

    Hi Rocky,

    Thank you for providing the additional information. Although, looking at the script, I can see that this will return a blob of unreadable information. I have also tested this as shown in the below screenshot.