# Don't auto-retry in certain circumstances \(\#35037\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2a9355a3d25ddd887556741a30bbafd5d6ff58f0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2a9355a3d25ddd887556741a30bbafd5d6ff58f0

Requested commit: 2a9355a3d25ddd887556741a30bbafd5d6ff58f0

Commit: 2a9355a3d25ddd887556741a30bbafd5d6ff58f0

Tree: 485bc42b464e0da9c5e62146dd78f8ed414a027e

Author: Richard Feldman

Committer: GitHub

## Message

```
Don't auto-retry in certain circumstances (#35037)

Someone encountered this in production, which should not happen:

<img width="1266" height="623" alt="Screenshot 2025-07-24 at 10 38
40 AM"
src="https://github.com/user-attachments/assets/40f3f977-5110-4808-a456-7e708d953b3b"
/>

This moves certain errors into the category of "never retry" and reduces
the number of retries for some others. Also it adds some diagnostic
logging for retry policy.

It's not a complete fix for the above, because the underlying issues is
that the server is sending a HTTP 403 response and although we were
already treating 403s as "do not retry" it was deciding to retry with 2
attempts anyway. So further debugging is needed to figure out why it
wasn't going down the 403 branch by the time the request got here.

Release Notes:

- N/A
```

## Parents

- [fa788a39a4b8dded19cd27d79c9bd0c63d601039](https://git.cafe/gitcafe/zed/commit/fa788a39a4b8dded19cd27d79c9bd0c63d601039?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2a9355a3d25ddd887556741a30bbafd5d6ff58f0?format=markdown)
