<?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: Getting error Method=query: KeyError('url') in python EF2 based extensiton in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/271856#M6009</link>
    <description>&lt;P&gt;Hi Antonio,&lt;BR /&gt;What if we are using a managed version of Dynatrace and do not have access to the "Custom Extensions Creator?"&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 13:23:23 GMT</pubDate>
    <dc:creator>AmayShah</dc:creator>
    <dc:date>2025-03-07T13:23:23Z</dc:date>
    <item>
      <title>Getting error Method=query: KeyError('url') in python EF2 based extensiton</title>
      <link>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/253856#M5009</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I recently converted a generic database plugin from EF1 to EF2. After building and uploading the plugin to the environment, I'm encountering the following error message in the logs: "Method=query: KeyError('url')". Could anyone please help me identify the cause of this error?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 08:22:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/253856#M5009</guid>
      <dc:creator>vinaykorlepara1</dc:creator>
      <dc:date>2024-08-23T08:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error Method=query: KeyError('url') in python EF2 based extensiton</title>
      <link>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/258946#M5306</link>
      <description>&lt;P&gt;I have the same issue. Is there any feedback / help related to this issue, available please?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 12:36:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/258946#M5306</guid>
      <dc:creator>jannickdeturck</dc:creator>
      <dc:date>2024-10-11T12:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error Method=query: KeyError('url') in python EF2 based extensiton</title>
      <link>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/258991#M5308</link>
      <description>&lt;P&gt;Are you positive you "converted" the entire extension? That includes rewriting the source code as well.&lt;BR /&gt;&lt;BR /&gt;That error message means that the code is looking for a property called "url" that doesn't exist in the activation schema.&lt;BR /&gt;&lt;BR /&gt;Converting database extensions means creating a SQL Datasource extension, it should not involve python at all unless you are 100% sure of what you are doing.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 22:37:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/258991#M5308</guid>
      <dc:creator>david_lopes</dc:creator>
      <dc:date>2024-10-11T22:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error Method=query: KeyError('url') in python EF2 based extensiton</title>
      <link>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/258992#M5309</link>
      <description>&lt;P&gt;When creating a python extension in VS Code, the following code is automatically generated inside query():&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        for endpoint in self.activation_config["endpoints"]:
            url = endpoint["url"]
            user = endpoint["user"]
            password = endpoint["password"]
            self.logger.debug(f"Running endpoint with url '{url}'")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error you are getting is because of the second line above. You have to tweak the code. But, as &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/4044"&gt;@david_lopes&lt;/a&gt; , you shouldn't be getting that error when dealing with a SQL datasource extension.&lt;/P&gt;&lt;P&gt;If you are migrating from custom.db.query, use the "custom extensions creator" app&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 22:52:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/258992#M5309</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-10-11T22:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error Method=query: KeyError('url') in python EF2 based extensiton</title>
      <link>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/271856#M6009</link>
      <description>&lt;P&gt;Hi Antonio,&lt;BR /&gt;What if we are using a managed version of Dynatrace and do not have access to the "Custom Extensions Creator?"&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 13:23:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Getting-error-Method-query-KeyError-url-in-python-EF2-based/m-p/271856#M6009</guid>
      <dc:creator>AmayShah</dc:creator>
      <dc:date>2025-03-07T13:23:23Z</dc:date>
    </item>
  </channel>
</rss>

