Describe the bug
The sbt-sonatype plugin is failing to release artifacts to Sonatype Central due to a timeout exception. The plugin does not properly handle sttp.client4.SttpClientException$TimeoutException, causing the release process to fail.
How to reproduce the issue
Set up a project with sbt-sonatype plugin configured for release to Sonatype Central.
Attempt to release artifacts using sbt -v ci-release.
The process fails with a sttp.client4.SttpClientException$TimeoutException.
Additional context
The error occurs during the status check of the deployment. The current implementation does not properly handle timeout exceptions, causing the release process to fail. The error stack trace shows multiple recursive calls to didDeploySucceed, suggesting that the retry logic may be implemented inefficiently.
The current implementation in SonatypeCentralClient class does not explicitly handle SttpClientException$TimeoutException, leading to unhandled timeouts and failed releases.
Describe the bug The sbt-sonatype plugin is failing to release artifacts to Sonatype Central due to a timeout exception. The plugin does not properly handle
sttp.client4.SttpClientException$TimeoutException
, causing the release process to fail.How to reproduce the issue
sbt -v ci-release
.sttp.client4.SttpClientException$TimeoutException
.Additional context The error occurs during the status check of the deployment. The current implementation does not properly handle timeout exceptions, causing the release process to fail. The error stack trace shows multiple recursive calls to
didDeploySucceed
, suggesting that the retry logic may be implemented inefficiently.Error log snippet:
08:56:05.635 [main] ERROR sttp.client4.logging.slf4j.Slf4jLoggingBackend - Exception when sending request: POST https://central.sonatype.com/api/v1/publisher/status?id=dfc06ac3-f563-47f8-8381-f6037780f0c8, took: 5.103s sttp.client4.SttpClientException$TimeoutException: Exception when sending request: POST https://central.sonatype.com/api/v1/publisher/status?id=dfc06ac3-f563-47f8-8381-f6037780f0c8
https://github.com/j5ik2o/akka-persistence-dynamodb/actions/runs/11067138584/job/30750697491#step:5:945
The current implementation in
SonatypeCentralClient
class does not explicitly handleSttpClientException$TimeoutException
, leading to unhandled timeouts and failed releases.