# DeploymentClient from Classic Environment V1

**URL:** <https://community.dynatrace.com/t/deploymentclient-from-classic-environment-v1/38441>\
**Category:** Developer Q&A Forum\
**Tags:** coding-assistance\
**Created:** [February 14, 2023, 4:29pm UTC](https://community.dynatrace.com/t/deploymentclient-from-classic-environment-v1/38441 "2023-02-14T16:29:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas\_hocker](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lucas_hocker/32/29551_2.png) [@lucas\_hocker](https://community.dynatrace.com/u/lucas_hocker)\
**Post date:** [February 14, 2023, 4:29pm UTC](https://community.dynatrace.com/t/deploymentclient-from-classic-environment-v1/38441/1 "2023-02-14T16:29:25Z")

</div>

I’m a bit confused on how to use the **DeploymentClient** documented here:&nbsp;[Classic environment v1 | Dynatrace Developer](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?

```auto
<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?

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [February 14, 2023, 5:02pm UTC](https://community.dynatrace.com/t/deploymentclient-from-classic-environment-v1/38441/2 "2023-02-14T17:02:16Z")

</div>

Hi Lucas,

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

Best,  
Sini

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [February 20, 2023, 9:46am UTC](https://community.dynatrace.com/t/deploymentclient-from-classic-environment-v1/38441/3 "2023-02-20T09:46:39Z")

</div>

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
