14 Feb 2023
08:29 AM
- last edited on
02 May 2023
06:27 AM
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.
Hi Lucas,
We are looking into the issue. I was able to reproduce it. We will keep you posted.
Best,
Sini
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