refreshVersions icon indicating copy to clipboard operation
refreshVersions copied to clipboard

SocketTimeoutException when running `./gradlew refreshVersions`

Open CDRussell opened this issue 4 years ago • 3 comments

🐛 Describe the bug

Running refreshVersions fails because of a SocketTimeoutException.

⚠️ Current behavior

The task fails to complete successfully.

<-- HTTP FAILED: java.net.SocketTimeoutException: timeout
> Task :refreshVersions FAILED

FAILURE: Build failed with an exception.

The error message doesn't indicate which request failed, but I think it's this one: https://plugins.gradle.org/m2/de/fayard/refreshVersions/de.fayard.refreshVersions.gradle.plugin/maven-metadata.xml

✅ Expected behavior

The task should complete without failure

💣 Steps to reproduce

I tried using refresh versions 0.20.0 and 0.11.0 (same issue)

  1. Run ./gradlew refreshVersions from probably any existing project, or create a brand new one
  2. The task will fail

📱 Tech info

CDRussell avatar Sep 16 '21 11:09 CDRussell

I am also affected, looks like https://plugins.gradle.org/m2/ outage

I think refreshVersions should support such scenarios and allow to update dependencies which are hosted on unaffected servers. Obviously there should be clear messaging that it wasn't able to update such and such dependencies due to network/server errors.

Edit: Gradle Incident Report https://status.gradle.com/incidents/ndfqcnmqc8n7

starsep avatar Sep 16 '21 12:09 starsep

Making refreshVersions able to work partially when some repos are timing out, or failing in other ways is planned, I'll keep you updated.

LouisCAD avatar Sep 17 '21 06:09 LouisCAD

Relates to #468

LouisCAD avatar Dec 18 '21 23:12 LouisCAD