# Getting gateway timeouts when downloading android deps via gradle build

**URL:** <https://discuss.bitrise.io/t/getting-gateway-timeouts-when-downloading-android-deps-via-gradle-build/8534>\
**Category:** Builds\
**Created:** [March 25, 2019, 1:46am UTC](https://discuss.bitrise.io/t/getting-gateway-timeouts-when-downloading-android-deps-via-gradle-build/8534 "2019-03-25T01:46:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aryo](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@aryo](https://discuss.bitrise.io/u/aryo)\
**Post date:** [March 25, 2019, 1:46am UTC](https://discuss.bitrise.io/t/getting-gateway-timeouts-when-downloading-android-deps-via-gradle-build/8534/1 "2019-03-25T01:46:54Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

For the past few hours our Android builds have been failing due to not being able to downloading dependencies during the gradle build step.

> Could not resolve com.android.tools.lint:lint:24.3.1.  
> Could not get resource ‘[https://jcenter.bintray.com/com/android/tools/lint/lint/24.3.1/lint-24.3.1.pom](https://jcenter.bintray.com/com/android/tools/lint/lint/24.3.1/lint-24.3.1.pom)’.  
> Could not GET ‘[https://jcenter.bintray.com/com/android/tools/lint/lint/24.3.1/lint-24.3.1.pom](https://jcenter.bintray.com/com/android/tools/lint/lint/24.3.1/lint-24.3.1.pom)’. Received status code 502 from server: Bad Gateway

When we try to rebuild it, at each rebuild it fails for different deps, but I can access those urls and download from a local machine no problem.

## Environment:

**Where did the issue happen?**

If on [Bitrise.io](http://Bitrise.io): which stack? If not on [Bitrise.io](http://Bitrise.io): on what operating system? (Plus any other information you can share)

Android & Docker, on Ubuntu 16.04

**Which build Step causes the issue and which version of the step?**

Fastlane android check (always latest version), during the gradle build step

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ :  
NO, rebuilt ~10 times, same error but happens randomly in terms of which deps

- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : NO

- _Does the issue happen sporadically, or every time?_ : Every time

- _Does upgrading the build Step to the latest version help?_ : NO, set to always use latest

- _When did the issue start?_ : Since our first build today, so at least a couple of hours

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what [bitrise.io](http://bitrise.io) will get when it does a git clone in the clean environment! If possible please note which sections you tried._

No. building it locally using fastlane works every time.

### Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [Bitrise CLI](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [Running your build locally in Docker](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._  
NO

## Build log

_Please copy paste the build’s [bitrise.io](http://bitrise.io) URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - [Contact us](https://www.bitrise.io/contact) ), with a link to the related Discuss issue._

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

**Author:** ![aryo](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@aryo](https://discuss.bitrise.io/u/aryo)\
**Post date:** [March 25, 2019, 3:48am UTC](https://discuss.bitrise.io/t/getting-gateway-timeouts-when-downloading-android-deps-via-gradle-build/8534/2 "2019-03-25T03:48:51Z")

</div>

Apparently the jcenter maven repo is having issues… nothing to do with bitrise it seems

Edit: was able to reproduce the issue locally

---

<div class="post-metadata">

**Author:** ![tamasbazsonyi](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/tamasbazsonyi/32/1654_2.png) [@tamasbazsonyi](https://discuss.bitrise.io/u/tamasbazsonyi)\
**Post date:** [March 25, 2019, 7:43am UTC](https://discuss.bitrise.io/t/getting-gateway-timeouts-when-downloading-android-deps-via-gradle-build/8534/3 "2019-03-25T07:43:28Z")

</div>

Hi @aryo ,  
Yes, We see that there was an outage on jcenter: [https://status.bintray.com](https://status.bintray.com) but it appears to be solved at 05:09 utc. Are you still seeing issues with android dependencies?

---

<div class="post-metadata">

**Author:** ![aryo](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@aryo](https://discuss.bitrise.io/u/aryo)\
**Post date:** [March 25, 2019, 8:16pm UTC](https://discuss.bitrise.io/t/getting-gateway-timeouts-when-downloading-android-deps-via-gradle-build/8534/4 "2019-03-25T20:16:15Z")

</div>

All fixed now, thanks

---

<div class="post-metadata">

**Author:** ![tamasbazsonyi](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/tamasbazsonyi/32/1654_2.png) [@tamasbazsonyi](https://discuss.bitrise.io/u/tamasbazsonyi)\
**Post date:** [March 26, 2019, 4:45pm UTC](https://discuss.bitrise.io/t/getting-gateway-timeouts-when-downloading-android-deps-via-gradle-build/8534/5 "2019-03-26T16:45:17Z")

</div>

Awesome! Thanks for confirming! 🤓I’ll be closing this thread then, but if you’d have any issues or questions feel free to open a new ticket either here or on our on-site chat!  
Happy Building! 🚀💪

---

<div class="post-metadata">

**Author:** ![tamasbazsonyi](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/tamasbazsonyi/32/1654_2.png) [@tamasbazsonyi](https://discuss.bitrise.io/u/tamasbazsonyi)\
**Post date:** [March 26, 2019, 4:45pm UTC](https://discuss.bitrise.io/t/getting-gateway-timeouts-when-downloading-android-deps-via-gradle-build/8534/6 "2019-03-26T16:45:24Z")

</div>


