cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error running self.initialize ExtensionImpl(name=nonauthhealtcheck, version=0.0.2): KeyError('url'); Datasource has exited and wil

jannickdeturck
Visitor

jannickdeturck_1-1728648116516.png


when adding a configuration to this v2 extension -> Error running self.initialize ExtensionImpl(name=nonauthhealtcheck, version=0.0.2)


jannickdeturck_0-1728648053381.png

Has anybody an idea ???

4 REPLIES 4

david_lopes
Dynatrace Mentor
Dynatrace Mentor

You don't show the initialize method or the activation schema file, but it seems like it is trying to access a "url" config that is not present

AntonioSousa
DynaMight Guru
DynaMight Guru

When creating a python extension in VS Code, the following code is automatically generated inside query():

        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}'")

 

The error you are getting is probably because of the second line above. Please check if that is in your query() function.

Antonio Sousa

jannickdeturck
Visitor

jannickdeturck_0-1729081076826.png

 

jannickdeturck_1-1729081100386.png

 

@jannickdeturck,

Forgot to say if you don't have those properties [url,user,password] in your extension definition, you will have to take them out.

Besides that, the lines below line 100 seem to come from your v1 extensions. Those are also not supported that way in EF2...

If you haven't seen this video, you should take a look: https://www.youtube.com/watch?v=g-lPIZx66BA

Antonio Sousa

Featured Posts