502 Bad Gateway Error When Downloading Repository
Asked by eseyden:

I am unable to download the tar.gz file of any of my repositories. They all are returning 502 Bad Gateway errors. I can replicate this by going to <https://bitucket.org/{orginization}/{repository}/get/master.tar.gz> or /master.zip


Answers:
author: Caroline R
body: Hi, everyone!

Thank you for reaching out to Atlassian Community.

We identified an issue on our side that is preventing our customers from downloading their repositories using the download option at the moment.

Our dev team is already aware of this behavior and they are working to have it fixed, although we don't have an ETA to share at the moment.

While this is not resolved, we would like to advise you to use "git clone" instead to get the data that you need from your repository.

Kind regards,  
Caroline

comments: author: eseyden
body: Hi Caroline,

Thank you for the update. I just checked and the issue looks to be resolved for our repositories today. My CI/CD pipeline relies on repository download so it would have been tricky to retool. My org is very appreciative of your team helping us getting our new release out today.

Thanks for letting us know what was going on.

Have a good one,  
Eric


author: Caroline R
body: Hi, Eric!

Thanks for your feedback, I'm glad to know that!

The issue is resolved and the fix is already deployed into the Production. We are still monitoring the issue and will provide further updates next week.

Kind regards,  
Caroline


author: freelance_mark_ballinger
body: I'm also having the same issue. I can't download the .Zip file.

comments: author: freelance_mark_ballinger
body: Can someone with paid support log a ticket and report this as an issue?


author: eseyden
body: Thanks for confirming I wasn't the only one experiencing this issue. Hope your repo is fixed now too.


author: plexus77
body: I have started getting gateway timeouts or bad gateway responses while using Envoyer, never seen this issue before. Tried resetting the bitbucket token to no avail, not sure what else to do. Sounds like the issue is on the bitbucket side of things.

Please help.

```
Downloading the code repository.Found tarball URL: https://bitbucket.org/xxx/xxx/get/2c5808643b1e845dc3e322136a3797213516ab76.tar.gz--2022-07-11 15:22:24--  https://bitbucket.org/xxx/xxx/get/2c5808643b1e845dc3e322136a3797213516ab76.tar.gzResolving bitbucket.org (bitbucket.org)... 104.192.141.1, 2406:da00:ff00::22c5:2ef4, 2406:da00:ff00::22cd:e0db, ...Connecting to bitbucket.org (bitbucket.org)|104.192.141.1|:443... connected.HTTP request sent, awaiting response... 504 Gateway Time-outRetrying.--2022-07-11 15:23:26--  (try: 2)  https://bitbucket.org/xxx/xxx/get/2c5808643b1e845dc3e322136a3797213516ab76.tar.gzConnecting to bitbucket.org (bitbucket.org)|104.192.141.1|:443... connected.HTTP request sent, awaiting response... 502 Bad Gateway2022-07-11 15:23:30 ERROR 502: Bad Gateway?
```

comments: author: Caroline R
body: Hi [@plexus77](/t5/user/viewprofilepage/user-id/1970203), sorry for taking so long to get back to you.

I would like to ask if you could please create a new question for your issue, providing details on the errors you see.

We generally encourage users to create a new question for their issue instead of posting on someone else's question, because 1) the root cause and resolution may be different for each case 2) a question can become cluttered and difficult to follow if we try to troubleshoot multiple users' issues in it.

Thank you.

Kind regards,  
Caroline


author: plexus77
body: Hi Caroline,

It was an issue with the bitbucket service.... long resolved.


Tags: bitbucket-cloud

cloud