# Error while running the monaco download command as attached

**URL:** <https://community.dynatrace.com/t/error-while-running-the-monaco-download-command-as-attached/37831>\
**Category:** Open Q&A\
**Tags:** monaco\
**Created:** [December 30, 2022, 2:04pm UTC](https://community.dynatrace.com/t/error-while-running-the-monaco-download-command-as-attached/37831 "2022-12-30T14:04:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Reddy](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@Krishna\_Reddy](https://community.dynatrace.com/u/Krishna_Reddy)\
**Post date:** [December 30, 2022, 2:04pm UTC](https://community.dynatrace.com/t/error-while-running-the-monaco-download-command-as-attached/37831/1 "2022-12-30T14:04:24Z")

</div>

I have created a token in Dynatrace with the scope of Read Configuration. I have added the variable and token in etc/environment file as I am using ubuntu. I have added the token name to my&nbsp;environments.yaml. I am getting the below error. Can you please help me by pointing out mistake/mistakes in my approach? I hope my screenshots give an idea of what I am doing.

 ![environments_yaml.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d5e901f21ca98fd9046a9fe08d2a263b15b387d2.png)  
 ![Dynatarce Command.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/4/944c8a1da98fbdeb7622b1d883062d75573597cb.png)

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [December 30, 2022, 4:44pm UTC](https://community.dynatrace.com/t/error-while-running-the-monaco-download-command-as-attached/37831/2 "2022-12-30T16:44:47Z")

</div>

Hi&nbsp;[@Krishna\_Reddy](https://community.dynatrace.com/user/47489)

Try to remove the trailing / from the end of the env-url

Should be:&nbsp;env-url: “https://{environmentid}.live.dynatrace.com”

HTH

Yos

---

<div class="post-metadata">

**Author:** ![Krishna\_Reddy](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@Krishna\_Reddy](https://community.dynatrace.com/u/Krishna_Reddy)\
**Post date:** [January 6, 2023, 1:03am UTC](https://community.dynatrace.com/t/error-while-running-the-monaco-download-command-as-attached/37831/3 "2023-01-06T01:03:04Z")

</div>

Thank you&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)&nbsp;, that was helpful. I could download the configuration successfully. Can you please let me know all the scopes I need to inlcude while creating a token not to miss any dynatrace configuration in my repo?

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [January 6, 2023, 10:37am UTC](https://community.dynatrace.com/t/error-while-running-the-monaco-download-command-as-attached/37831/4 "2023-01-06T10:37:14Z")

</div>

Hi&nbsp;[@Krishna\_Reddy](https://community.dynatrace.com/user/47489)

Glad that I was helpful this time

For token&nbsp;permissions check&nbsp;[Configuration types and token permissions](https://dynatrace-oss.github.io/dynatrace-monitoring-as-code/configuration/configTypes_tokenPermissions)

All the best and stay safe

Yos
