14 Feb 2023 04:29 PM - last edited on 02 May 2023 02:27 PM by educampver
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?
Solved! Go to Solution.
14 Feb 2023 05:02 PM
Hi Lucas,
We are looking into the issue. I was able to reproduce it. We will keep you posted.
Best,
Sini
20 Feb 2023 09:46 AM
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