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

DeploymentClient from Classic Environment V1

lucas_hocker
Dynatrace Helper
Dynatrace Helper

I'm a bit confused on how to use the DeploymentClient documented here: https://developer.dynatrace.com/reference/sdks/client-classic-environment-v1/#deploymentclient. It returns a promise of type void. Where does the actual download go? How do I access it?

<Button
onClick={() => {
const agentPromise = deploymentClient.downloadLatestAgentInstaller({
osType: DownloadLatestAgentInstallerPathOsType.Unix,
installerType: DownloadLatestAgentInstallerPathInstallerType.Default,
});

agentPromise
.then(val => {
debugger;
console.log("client:",val);
});
}}
>

I can see in dev-tools that a network request was indeed initiated for /latest and it was a 200 ok, but the request is still in a pending status. What am I missing?

2 REPLIES 2

sinisa_zubic
Dynatrace Champion
Dynatrace Champion

Hi Lucas,

We are looking into the issue. I was able to reproduce it. We will keep you posted.

Best,
Sini

sinisa_zubic
Dynatrace Champion
Dynatrace Champion

Hi Lucas,

We have been able to identify the root cause of the issue and the team will fix it. Expect a fix in 2 months at the earliest.

Best,
Sini

Featured Posts