DeploymentClient from Classic Environment V1

I’m a bit confused on how to use the DeploymentClient documented here: Classic environment v1 | Dynatrace Developer. It returns a promise of type void. Where does the actual download go? How do I access it?

<span><</span><span>Button</span><br><span>  onClick</span><span>=</span><span>{</span><span>() </span><span>=></span><span> {</span><br><span>    const</span> <span>agentPromise</span><span> = </span><span>deploymentClient</span><span>.</span><span>downloadLatestAgentInstaller</span><span>({</span><br><span>      osType</span><span>:</span> <span>DownloadLatestAgentInstallerPathOsType</span><span>.</span><span>Unix</span><span>,</span><br><span>      installerType</span><span>:</span> <span>DownloadLatestAgentInstallerPathInstallerType</span><span>.</span><span>Default</span><span>,</span><br><span>    });</span><br><span><br>  agentPromise</span><span>.</span><span>then</span><span>(</span><span>val</span> <span>=></span><span> {</span><br><span>    debugger</span><span>;</span><br><span>    console</span><span>.</span><span>log</span><span>(</span><span>"client:"</span><span>,</span><span>val</span><span>);</span><br><span>   });</span><br><span> }</span><span>}</span><br><span>></span>

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?

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