# Unable to fetch secrets

**URL:** <https://community.doppler.com/t/unable-to-fetch-secrets/1172>\
**Category:** Need Help\
**Created:** [May 28, 2023, 8:24pm UTC](https://community.doppler.com/t/unable-to-fetch-secrets/1172 "2023-05-28T20:24:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjun\_Chouksey](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/arjun_chouksey/32/794_2.png) [@Arjun\_Chouksey](https://community.doppler.com/u/Arjun_Chouksey)\
**Post date:** [May 28, 2023, 8:24pm UTC](https://community.doppler.com/t/unable-to-fetch-secrets/1172/1 "2023-05-28T20:24:44Z")

</div>

Currenty, I’m getting these from all my microservices.

```auto
Unable to fetch secrets
Doppler Error: Get "https://api.doppler.com/v3/configs/config/secrets?config=&include_dynamic_secrets=false&project=&secrets=CELERY_CONCURRENCY": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Unable to fetch secrets from the Doppler API
Doppler Error: Get "https://api.doppler.com/v3/configs/config/secrets/download?config=&format=json&include_dynamic_secrets=true&project=": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

```

---

<div class="post-metadata">

**Author:** ![Arjun\_Chouksey](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/arjun_chouksey/32/794_2.png) [@Arjun\_Chouksey](https://community.doppler.com/u/Arjun_Chouksey)\
**Post date:** [May 28, 2023, 10:50pm UTC](https://community.doppler.com/t/unable-to-fetch-secrets/1172/2 "2023-05-28T22:50:39Z")

</div>

I applied doppler run – command to run server – debug and i’m getting debug logs

```auto
Unable to download secrets
Doppler Error: Invalid Auth token

```

I don’t understand this, there no expiry set for service token that i created. Can somebody explain ?

---

<div class="post-metadata">

**Author:** ![watsonian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/watsonian/32/267_2.png) [@watsonian](https://community.doppler.com/u/watsonian)\
**Post date:** [May 30, 2023, 3:25pm UTC](https://community.doppler.com/t/unable-to-fetch-secrets/1172/3 "2023-05-30T15:25:58Z")

</div>

Hi @Arjun_Chouksey,

Welcome to the Doppler Community!

Typically, timeout errors like this occur due to DNS resolution problems. Could you try enabling the `--enable-dns-resolver` flag and see if that makes a difference? That causes the CLI to bypass the OS DNS resolver and instead use a software resolver that’s hitting Cloudflare’s DNS nameservers (`1.1.1.1`). If DNS resolution is the problem, then enabling that should fix it. If it does, then explicitly setting your servers to use either Cloudflare or Google’s public DNS nameservers is a good longer term solution.

Regards,  
-Joel
