<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Different log messages with python requests cert validation, between EF1 and EF2? in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Different-log-messages-with-python-requests-cert-validation/m-p/258831#M5301</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4044"&gt;@david_lopes&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, best to do, get rid of it, as it was polluting the logs. For all other reading this, please understand the risks, as verify=False should only be used in certain circumstances &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 14:16:57 GMT</pubDate>
    <dc:creator>AntonioSousa</dc:creator>
    <dc:date>2024-10-10T14:16:57Z</dc:date>
    <item>
      <title>Different log messages with python requests cert validation, between EF1 and EF2?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Different-log-messages-with-python-requests-cert-validation/m-p/258771#M5295</link>
      <description>&lt;P&gt;In most of my extensions, I use requests to the AG localhost, using the API for several use-cases.&lt;/P&gt;&lt;P&gt;Because AG's don't typically have valid certs, I use the verify=False parameter to force not checking cert validity when communicating with AG.&lt;/P&gt;&lt;P&gt;In EF1, I had the following entries in the log files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2024-10-09 18:28:01.190 UTC WARNING [Python][14120372674404520656][XXXXXX][140651756611328][ThreadPoolExecutor-0_1] - [write] /var/lib/dynatrace/remotepluginmodule/agent/runtime/engine_unzipped/site-packages/urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In EF2, I now have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[9d149e58-ac16-3f82-afa1-3e262574cdd5][-1571001820422410953][3642652][err]/var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/python_venvs/XXXXXX/lib/python3.10/site-packages/urllib3/connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
[9d149e58-ac16-3f82-afa1-3e262574cdd5][-1571001820422410953][3642652][err]  warnings.warn(&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was a WARNING before turns out to be an ERROR now. And it messes up log analysis.&lt;/P&gt;&lt;P&gt;I would say that this is a consequence of moving from python 3.8 to 3.10, but can someone confirm?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 19:00:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Different-log-messages-with-python-requests-cert-validation/m-p/258771#M5295</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-10-09T19:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Different log messages with python requests cert validation, between EF1 and EF2?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Different-log-messages-with-python-requests-cert-validation/m-p/258781#M5296</link>
      <description>That is because the message is printed to the standard error output (stderr) You should disable that warning if you want to get rid of the message, a quick google should show how</description>
      <pubDate>Wed, 09 Oct 2024 22:33:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Different-log-messages-with-python-requests-cert-validation/m-p/258781#M5296</guid>
      <dc:creator>david_lopes</dc:creator>
      <dc:date>2024-10-09T22:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Different log messages with python requests cert validation, between EF1 and EF2?</title>
      <link>https://community.dynatrace.com/t5/Extensions/Different-log-messages-with-python-requests-cert-validation/m-p/258831#M5301</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4044"&gt;@david_lopes&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, best to do, get rid of it, as it was polluting the logs. For all other reading this, please understand the risks, as verify=False should only be used in certain circumstances &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 14:16:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Different-log-messages-with-python-requests-cert-validation/m-p/258831#M5301</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-10-10T14:16:57Z</dc:date>
    </item>
  </channel>
</rss>

