# Can't Publish Scan Behind Proxy

**URL:** <https://discuss.gradle.org/t/cant-publish-scan-behind-proxy/33894>\
**Category:** scans.gradle.com\
**Created:** [November 16, 2019, 8:32pm UTC](https://discuss.gradle.org/t/cant-publish-scan-behind-proxy/33894 "2019-11-16T20:32:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pnewhook](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/pnewhook/32/7462_2.png) [@pnewhook](https://discuss.gradle.org/u/pnewhook)\
**Post date:** [November 16, 2019, 8:32pm UTC](https://discuss.gradle.org/t/cant-publish-scan-behind-proxy/33894/1 "2019-11-16T20:32:31Z")

</div>

I’m getting the following error when I try to run a dependency scan

```
If you require assistance with this problem, please report it via https://gradle.com/scans/help/plugin and include the following information via copy/paste.

----------
Gradle version: 5.6.4
Plugin version: 2.4.2
Request URL: https://scans-in.gradle.com/in/5.6.4/2.4.2
Request ID: 6ac584f6-1f76-4649-82e5-120126e17355
Exception: java.net.SocketTimeoutException: connect timed out
----------

```

I’m currently on a VPN behind a corporate proxy. I’ve configured the `systemProp.https.proxy*` settings, so builds work properly, but Gradle doesn’t apply my proxy settings to scan uploads. I’ve tried passing `-Dhttps.proxyHost` at the command line, but it doesn’t make a difference.

---

<div class="post-metadata">

**Author:** ![Rene](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/rene/32/8082_2.png) [@Rene](https://discuss.gradle.org/u/Rene)\
**Post date:** [February 2, 2020, 12:48pm UTC](https://discuss.gradle.org/t/cant-publish-scan-behind-proxy/33894/2 "2020-02-02T12:48:00Z")

</div>

Sorry for the very very late reply Peter. We’re currently working on a fix for that.

cheers,  
rene

---

<div class="post-metadata">

**Author:** ![cb2](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/cb2/32/7599_2.png) [@cb2](https://discuss.gradle.org/u/cb2)\
**Post date:** [June 25, 2020, 9:21am UTC](https://discuss.gradle.org/t/cant-publish-scan-behind-proxy/33894/3 "2020-06-25T09:21:46Z")

</div>

Is there somewhere I can follow the progress for that fix because I would also like it to work from within a corporate firewall and proxy environment?

Cheers,  
Christer

---

<div class="post-metadata">

**Author:** ![Francois\_Guillot](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/francois_guillot/32/8566_2.png) [@Francois\_Guillot](https://discuss.gradle.org/u/Francois_Guillot)\
**Post date:** [June 25, 2020, 9:44am UTC](https://discuss.gradle.org/t/cant-publish-scan-behind-proxy/33894/4 "2020-06-25T09:44:58Z")

</div>

Hi @pnewhook @cb2  
This has been fixed in Gradle Enterprise Gradle plugin 3.2 and further improved in later versions.  
Using version 3.3.4 (latest currently) will fix this problem, both for HTTP and HTTPS defined proxy settings.

---

<div class="post-metadata">

**Author:** ![cb2](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/cb2/32/7599_2.png) [@cb2](https://discuss.gradle.org/u/cb2)\
**Post date:** [June 25, 2020, 3:24pm UTC](https://discuss.gradle.org/t/cant-publish-scan-behind-proxy/33894/5 "2020-06-25T15:24:03Z")

</div>

Thank you very much for that @Francois_Guillot 🙂 👍
