# Github 403 - rate limit exceeded

**URL:** <https://forum.dimagi.com/t/github-403-rate-limit-exceeded/11921>\
**Category:** Developers\
**Created:** [August 6, 2025, 12:13pm UTC](https://forum.dimagi.com/t/github-403-rate-limit-exceeded/11921 "2025-08-06T12:13:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erobinson](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/erobinson/32/2652_2.png) [@erobinson](https://forum.dimagi.com/u/erobinson)\
**Post date:** [August 6, 2025, 12:13pm UTC](https://forum.dimagi.com/t/github-403-rate-limit-exceeded/11921/1 "2025-08-06T12:13:04Z")

</div>

Anyone else having issues with Github today?  
"failed with 403: rate limit exceeded" when diff generation at deploy - seems quite frequent at the moment.

---

<div class="post-metadata">

**Author:** ![Ethan\_Soergel](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/ethan_soergel/32/543_2.png) [@Ethan\_Soergel](https://forum.dimagi.com/u/Ethan_Soergel)\
**Post date:** [August 6, 2025, 1:32pm UTC](https://forum.dimagi.com/t/github-403-rate-limit-exceeded/11921/2 "2025-08-06T13:32:16Z")

</div>

Do you know offhand if the requests you make to github are credentialed? If I recall correctly, unauthenticated requests have much lower rate limits than those with credentials. I can't deploy to Dimagi-managed environments without credentials, since we tag deploy commits (which require write access), but I think for third-party environments, you might not even get prompted for credentials.

Anyways, if not, I believe you can either set a `GITHUB_TOKEN` environment variable, or add it to a local `config.py`, which you can make by copying and renaming [this file](https://github.com/dimagi/commcare-cloud/blob/master/src/commcare_cloud/config.example.py) in the same directory (more details in that file). You can see how this is referenced in [github.py](https://github.com/dimagi/commcare-cloud/blob/master/src/commcare_cloud/github.py)

---

<div class="post-metadata">

**Author:** ![erobinson](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/erobinson/32/2652_2.png) [@erobinson](https://forum.dimagi.com/u/erobinson)\
**Post date:** [August 6, 2025, 1:38pm UTC](https://forum.dimagi.com/t/github-403-rate-limit-exceeded/11921/3 "2025-08-06T13:38:34Z")

</div>

I'm just doing a standard deploy from a monolith server so Ansible is handling those requests I guess. That said, this is a mirror of an existing server at a new IP and DNS address that I'm using for troubleshooting so I'm not sure if there's anything in there that might cause it. I don't normally have issues deploying but perhaps there's something I've missed. I'll keep an eye on it. Thanks Ethan!
