# 502 bad gateway for gitea.com

**URL:** <https://forum.gitea.com/t/502-bad-gateway-for-gitea-com/5750>\
**Category:** Site Feedback\
**Created:** [August 24, 2022, 5:15am UTC](https://forum.gitea.com/t/502-bad-gateway-for-gitea-com/5750 "2022-08-24T05:15:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viceice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/viceice/32/1104_2.png) [@viceice](https://forum.gitea.com/u/viceice)\
**Post date:** [August 24, 2022, 5:15am UTC](https://forum.gitea.com/t/502-bad-gateway-for-gitea-com/5750/1 "2022-08-24T05:15:17Z")

</div>

it seems [gitea.com](http://gitea.com) is unavailable. any news about the cause?

---

<div class="post-metadata">

**Author:** ![dachary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dachary/32/4990_2.png) [@dachary](https://forum.gitea.com/u/dachary)\
**Post date:** [August 24, 2022, 10:38pm UTC](https://forum.gitea.com/t/502-bad-gateway-for-gitea-com/5750/2 "2022-08-24T22:38:53Z")

</div>

It also timesout sometimes

> <https://github.com/go-gitea/gitea/issues/20906#issuecomment-1224998881>
>
> \### Description
> 
> See https://gitea.com/gitea/go-sdk/pulls: there are two ident…ical pull requests: 
> 
> \* https://gitea.com/gitea/go-sdk/pulls/598
> \* https://gitea.com/gitea/go-sdk/pulls/597
> 
> !\[image\](https://user-images.githubusercontent.com/109468362/185816855-6edb56b8-e1ec-4680-af37-e4c73b25b9b2.png)
> 
> It happened while trying to submit a pull request while the gitea.com gateway was timeout (504 Gateway Time-out). Multiple requests were sent (reloading the URL creating the pull request with POST at https://gitea.com/gitea/go-sdk/compare/master...earl-warren/go-sdk:wip-issue-delete).
> 
> The final attempt showed a page explaining the pull request already exists:
> 
> !\[image\](https://user-images.githubusercontent.com/109468362/185817033-88b13907-06e7-4067-b474-69fc32e706ac.png)
> 
> But despite this safeguard two of the attempts raced against each other and created a duplicate. There is a race condition \*somewhere\*. An integration test trying to repeat these conditions would eventually run into this problem.
> 
> \### Gitea Version
> 
> dev
> 
> \### Can you reproduce the bug on the Gitea demo site?
> 
> No
> 
> \### Log Gist
> 
> a
> 
> \### Screenshots
> 
> a
> 
> \### Git Version
> 
> a
> 
> \### Operating System
> 
> a
> 
> \### How are you running Gitea?
> 
> a
> 
> \### Database
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [September 21, 2023, 10:28am UTC](https://forum.gitea.com/t/502-bad-gateway-for-gitea-com/5750/3 "2023-09-21T10:28:52Z")

</div>


