SonarQube Cloud java.net.SocketTimeoutException: timeout

Hello everyone.

We have observed that setting sonar.ws.timeout does not resolve the issue, and the problem continues to occur intermittently for users attempting this solution.

This seems to affect large projects more often than small projects, but some smaller projects do seem to be affected.

Meanwhile, retrying the analysis has worked for some projects. Of course, this is not a long-term solution.

We apologize for the inconvenience and will continue to investigate.

Just wanted to chime in – this is pretty dramatic for us. We cant merge any code in without sonar sign off.

4 Likes

Hi Colin unfortunately increasing the timeout from 60 to 600 did not help resolve the issue for us.

Also we have retried the analysis multiple times and have not had a single success

We’re hitting the same issue too; I’ll try those timeouts & see how we go.

I know that lots of people are having this issue, just chiming in that we are too.

We also can’t merge code without Sonar sign-off, and at the moment we can’t even build code; our failure rate would be well over 95%. One of my colleagues has successfully built one release once, but literally none of my builds have worked in the past 24 hours, and we’re tried re-running jobs (I gave up after retry #7, just in case the repetition helped, but other jobs I’ve also tried 3-4 times).

Our report size is 2MB and 3MB (different projects); Java (+ TS) project.

If you need us to try anything, let me know, as we clearly have a good test candidate.
(I know the post above says timeout doesn’t worked, but I’ll try it now anyway, since we’re getting a bit desperate).

We also have this problem and needed to disable sonar in order to be able to merge pull requests again. We noticed that the timeout occurs almost every time for pull requests in the github merge queue while sonar works for ~70% of the time for commits on pull requests. Is there any special handling regarding the merge queue branches that github creates that might play into this issue?

Hi I’m using Github Actions to run sonar cloud using the following command

      - name: SonarQube Scan
        uses: SonarSource/sonarqube-scan-action@v5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

This seems to work fine most of the cases, but lately after merging into main I start getting randomly the IllegalStateException error, which not sure why is happening. See some of the logs below, I can’t share the full log as is a private repo.

02:49:39.208 ERROR Error during SonarScanner Engine execution
java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=<privateOrg>&projectKey=<privateProject>&characteristic=branch%3Dmain&characteristic=branchType%3DLONG
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:266)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.post(HttpConnector.java:195)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.call(HttpConnector.java:141)
	at org.sonar.scanner.http.DefaultScannerWsClient.call(DefaultScannerWsClient.java:54)
	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:223)
	at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:157)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:185)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:454)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:143)
	at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:58)
	at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:42)
Caused by: java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
	at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:554)
	at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
	at okio.ForwardingSink.write(ForwardingSink.kt:29)
	at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:223)
	at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:256)
	at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:195)
	at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
	at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
	at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:62)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at com.sonarsource.scanner.engine.webapi.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:230)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:264)
	... 17 common frames omitted
	Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
		at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
		at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
		at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
		at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
		... 33 common frames omitted

And if click in the url I get

{
  "errors": [
    {
      "msg": "HTTP GET method used in request, but the service type is a POST"
    }
  ]
}

I didn’t change any configuration or workflow of the github action.
Do you have any idea on what could be happening?

Thanks!

Good morning everyone.

I want to sincerely apologize once again for the ongoing disruption. We are actively working on another mitigation strategy and will keep you updated with any developments throughout the day.

3 Likes

Hello everyone,

We’ve observed some improvements in CI-based analysis following an increase in timeouts—specifically, a reduction in errors, though the issue isn’t fully resolved yet. We’re continuing our investigation to address the remaining errors.

Thank you for your patience.

3 Likes

This morning it seems better (some checks are actually completing) but some aren’t no matter what timeout settings we adjust.

We’re also experiencing this issue in our org. Sonar analysis fails most of the time — while PR analyses are slightly more reliable, branch analyses consistently fail.

java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=XXXXXX&projectKey=XXXXXX&characteristic=pullRequest%3DXX
Caused by: java.net.SocketTimeoutException: timeout

CI/CD: AzureDevOps with Bitbucket as repo backend
Scanner runs with:
- task: Npm@1
displayName: NPM Sonar Cloud Analyze
inputs:
command: ā€˜custom’
customCommand: ā€œrun sonarā€
workingDir: $(clientAppPath)
jdkversion: ā€˜JAVA_HOME_17_X64’

Languages: Angular (JS/TS)

Happens in a specific project.
Happens 80% of runs, but sometimes runs succeed without this error.
Started happening Monday morning. No issues before that.

There were multiple changes to analyzed code, but we were unable to figure out if anything specific makes SonarCloud backend unhappy.

I guess we need someone to look into the logs from SonarCloud side.

2025-08-05T15:19:59.2608966Z ERROR: Error during SonarScanner execution
2025-08-05T15:19:59.2609288Z java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=XXXXXXXX&projectKey=YYYYYY&projectName=YYYYYY
2025-08-05T15:19:59.2609669Z 	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:267)
2025-08-05T15:19:59.2609990Z 	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.post(HttpConnector.java:195)
2025-08-05T15:19:59.2610308Z 	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.call(HttpConnector.java:141)
2025-08-05T15:19:59.2610612Z 	at org.sonar.scanner.http.DefaultScannerWsClient.call(DefaultScannerWsClient.java:54)
2025-08-05T15:19:59.2610922Z 	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:222)
2025-08-05T15:19:59.2611216Z 	at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:157)
2025-08-05T15:19:59.2611525Z 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:185)
2025-08-05T15:19:59.2611833Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2025-08-05T15:19:59.2612138Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2025-08-05T15:19:59.2612459Z 	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:454)
2025-08-05T15:19:59.2612870Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2025-08-05T15:19:59.2613191Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2025-08-05T15:19:59.2613489Z 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
2025-08-05T15:19:59.2613806Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2025-08-05T15:19:59.2614108Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2025-08-05T15:19:59.2614391Z 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
2025-08-05T15:19:59.2614666Z 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
2025-08-05T15:19:59.2614965Z 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2025-08-05T15:19:59.2615278Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2025-08-05T15:19:59.2615541Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2025-08-05T15:19:59.2615907Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2025-08-05T15:19:59.2616174Z 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2025-08-05T15:19:59.2616454Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2025-08-05T15:19:59.2616740Z 	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
2025-08-05T15:19:59.2617002Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2025-08-05T15:19:59.2617304Z 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2025-08-05T15:19:59.2617633Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
2025-08-05T15:19:59.2617892Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
2025-08-05T15:19:59.2618156Z 	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
2025-08-05T15:19:59.2618397Z Caused by: java.net.SocketTimeoutException: timeout
2025-08-05T15:19:59.2618681Z 	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
2025-08-05T15:19:59.2618992Z 	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
2025-08-05T15:19:59.2619295Z 	at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:554)
2025-08-05T15:19:59.2619591Z 	at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
2025-08-05T15:19:59.2619854Z 	at okio.ForwardingSink.write(ForwardingSink.kt:29)
2025-08-05T15:19:59.2620128Z 	at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:223)
2025-08-05T15:19:59.2620415Z 	at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:256)
2025-08-05T15:19:59.2620681Z 	at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:195)
2025-08-05T15:19:59.2620958Z 	at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
2025-08-05T15:19:59.2621234Z 	at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
2025-08-05T15:19:59.2621504Z 	at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
2025-08-05T15:19:59.2621775Z 	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:62)
2025-08-05T15:19:59.2622071Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2025-08-05T15:19:59.2622398Z 	at com.sonarsource.scanner.engine.webapi.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:230)
2025-08-05T15:19:59.2622780Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2025-08-05T15:19:59.2623091Z 	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
2025-08-05T15:19:59.2623390Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2025-08-05T15:19:59.2623680Z 	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
2025-08-05T15:19:59.2623977Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2025-08-05T15:19:59.2624269Z 	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
2025-08-05T15:19:59.2624571Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2025-08-05T15:19:59.2624878Z 	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
2025-08-05T15:19:59.2625194Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2025-08-05T15:19:59.2625485Z 	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
2025-08-05T15:19:59.2625777Z 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2025-08-05T15:19:59.2626093Z 	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
2025-08-05T15:19:59.2626385Z 	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
2025-08-05T15:19:59.2626680Z 	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:265)
2025-08-05T15:19:59.2626978Z 	... 28 more
2025-08-05T15:19:59.2627198Z 	Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
2025-08-05T15:19:59.2627474Z 		at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
2025-08-05T15:19:59.2627767Z 		at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
2025-08-05T15:19:59.2628080Z 		at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
2025-08-05T15:19:59.2628377Z 		at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
2025-08-05T15:19:59.2628608Z 		... 44 more
2025-08-05T15:19:59.2628886Z 	Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2025-08-05T15:19:59.2629170Z 		at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:646)
2025-08-05T15:19:59.2629472Z 		at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:557)
2025-08-05T15:19:59.2629702Z 		... 53 more
2025-08-05T15:19:59.2629926Z 		Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2025-08-05T15:19:59.2630206Z 			at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
2025-08-05T15:19:59.2630500Z 			at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
2025-08-05T15:19:59.2630812Z 			at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
2025-08-05T15:19:59.2631106Z 			at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
2025-08-05T15:19:59.2631348Z 			... 44 more
2025-08-05T15:19:59.2631573Z 	Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2025-08-05T15:19:59.2631856Z 		at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:646)
2025-08-05T15:19:59.2632158Z 		at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:557)
2025-08-05T15:19:59.2632389Z 		... 53 more
2025-08-05T15:19:59.2632621Z 		Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2025-08-05T15:19:59.2632986Z 			at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
2025-08-05T15:19:59.2633279Z 			at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
2025-08-05T15:19:59.2633588Z 			at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
2025-08-05T15:19:59.2633887Z 			at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
2025-08-05T15:19:59.2634131Z 			... 44 more
2025-08-05T15:19:59.2634354Z 	Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2025-08-05T15:19:59.2634644Z 		at okhttp3.internal.http2.Http2Stream.checkOutNotClosed$okhttp(Http2Stream.kt:646)
2025-08-05T15:19:59.2634946Z 		at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:557)
2025-08-05T15:19:59.2635170Z 		... 53 more
2025-08-05T15:19:59.2635403Z 		Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR
2025-08-05T15:19:59.2635674Z 			at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
2025-08-05T15:19:59.2635965Z 			at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
2025-08-05T15:19:59.2636272Z 			at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
2025-08-05T15:19:59.2636565Z 			at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
2025-08-05T15:19:59.2636807Z 			... 44 more```

Template for a good new topic, formatted with Markdown:

  • ALM used: Github
  • CI system used: Github actions
  • Scanner command used when applicable (private details masked)
  • Languages of the repository: PHP
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=xxx&projectKey=xxx&projectName=xxx&characteristic=pullRequest%3D11813
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:267)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.post(HttpConnector.java:195)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.call(HttpConnector.java:141)
	at org.sonar.scanner.http.DefaultScannerWsClient.call(DefaultScannerWsClient.java:54)
	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:222)
	at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:157)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:185)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:454)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:143)
	at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:58)
	at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:42)
Caused by: java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
	at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:554)
	at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
	at okio.ForwardingSink.write(ForwardingSink.kt:29)
	at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:223)
	at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:256)
	at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:195)
	at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
	at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
	at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:62)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at com.sonarsource.scanner.engine.webapi.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:230)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:265)
	... 17 common frames omitted
	Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
		at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
		at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
		at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
		at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
		... 33 common frames omitted
16:39:49.090 INFO  EXECUTION FAILURE
16:39:49.092 INFO  Total time: 6:32.315s
  • Steps to reproduce
  • Potential workaround

Template for a good new topic, formatted with Markdown:

  • ALM used: github
  • CI system used: github actions
  • Scanner command used when applicable (private details masked)
with:
                  args: >
                      -Dsonar.projectKey=GoodTimeio_EtchSchedule
                      -Dsonar.organization=goodtimeio
                      -Dsonar.coverage.exclusions=tests/**,tests-support/**,node_modules/**,public/**,migration/**,**/*mock-*.?s,
                      -Dsonar.javascript.lcov.reportPaths=**/lcov.info
                      -Dsonar.sources=.
                      -Dsonar.exclusions=xxx,.yarn/**
                      -Dsonar.tests=tests,tests-support
                      -Dsonar.test.inclusions=tests/**,tests-support/**
                      -Dsonar.cpd.exclusions=xxxx
                      -Dsonar.projectName=xxx
                      -Dsonar.sourceEncoding=UTF-8
                      -Dsonar.javascript.node.maxspace=16394
                      -Dsonar.projectVersion=${{ steps.sonarVersion.outputs.latest }}
  • Languages of the repository: javascript
  • Only if the SonarCloud project is public, the URL
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
18:15:27.384 ERROR Error during SonarScanner Engine execution

java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=xxxx&projectKey=xxxxx&projectName=xxxxx&characteristic=pullRequest%3xxxx
 at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:267)
 at com.sonarsource.scanner.engine.webapi.client.HttpConnector.post(HttpConnector.java:195)

 at com.sonarsource.scanner.engine.webapi.client.HttpConnector.call(HttpConnector.java:141)
 at org.sonar.scanner.http.DefaultScannerWsClient.call(DefaultScannerWsClient.java:54)

 at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:222)

 at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:157)
 at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:185)

 at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)

at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)

 at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:454)

 at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)

at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)

at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)

at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)

at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)

 at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:143)

at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:58)

 at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:42)

Caused by: java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
	at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:554)
	at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
	at okio.ForwardingSink.write(ForwardingSink.kt:29)
	at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:223)
	at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:256)
	at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:195)
	at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
	at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
	at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:62)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at com.sonarsource.scanner.engine.webapi.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:230)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:265)
	... 17 common frames omitted
	Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
		at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
		at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
		at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
		at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
		... 33 common frames omitted
  • Potential workaround: NA. We are blocked by this. I tried changing the github action version to an earlier one but that did not resolve this issue.

Good evening everyone.

We’ve taken several steps today to reduce the error rate, but our current assessment is that the issue lies outside of our control. We are actively collaborating with our cloud provider to investigate further and hope to resolve the root cause soon.

We apologize again for the ongoing disruption and appreciate your patience.

  • ALM used Bitbucket Cloud
  • CI system used Bitbucket Cloud
  • Scanner command used:
        size: 2x
        services:
          - sonar
        script:
          - pipe: sonarsource/sonarcloud-scan:4.1.0
            variables:
              SONAR_TOKEN: ${SONARCLOUD_TOKEN}
  • Languages of the repository: Javascript
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=purespectrum1&projectKey=purespectrum1_api_platform&characteristic=branch%3Ddevelopment&characteristic=branchType%3DLONG
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:253)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.post(HttpConnector.java:182)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.call(HttpConnector.java:138)
	at org.sonar.scanner.http.DefaultScannerWsClient.call(DefaultScannerWsClient.java:54)
	at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:220)
	at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:157)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:184)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:416)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:136)
	at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:53)
	at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:39)
Caused by: java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
	at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:554)
	at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
	at okio.ForwardingSink.write(ForwardingSink.kt:29)
	at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:223)
	at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:256)
	at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:195)
	at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
	at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
	at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:62)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at com.sonarsource.scanner.engine.webapi.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:230)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:251)
	... 17 common frames omitted
	Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
		at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
		at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
		at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
		at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
		... 33 common frames omitted
18:39:01.089 INFO  EXECUTION FAILURE
18:39:01.091 INFO  Total time: 4:46.957s
āœ– SonarQube Cloud analysis failed. (exit code = 3)

This issue started randomly failing yesterday, August 4th. The last successful scan of our main branch was on August 2nd. The scans for pull requests are all working, it is only when running the scan on our main branch, development, that we get this issue. We use the same scanner command listed above for pull requests and merges to the development branch.
We tried updating the Bitbucket Pipeline image from 2.0.0 to 4.1.0 to see if that made a difference but we still get the same timeout error.

Template for a good new topic, formatted with Markdown:

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps
  • Scanner command used when applicable (private details masked)
  • Languages of the repository: Node js
  • Only if the SonarCloud project is public, the URL: private project
    • And if you need help with pull request decoration, then the URL to the PR too: NA
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • ā€˜ā€™ā€™
    2025-08-05T21:08:16.1340980Z 21:08:16.133 INFO Sensor Zero Coverage Sensor (done) | time=64ms
    2025-08-05T21:08:16.1374514Z 21:08:16.135 INFO ------------- Gather SCA dependencies on project
    2025-08-05T21:08:16.6420677Z 21:08:16.640 INFO Checking if SCA is enabled for organization org-name
    2025-08-05T21:08:16.8381017Z 21:08:16.836 INFO Dependency analysis skipped
    2025-08-05T21:08:16.9825721Z 21:08:16.982 INFO SCM Publisher SCM provider for this project is: git
    2025-08-05T21:08:16.9849409Z 21:08:16.983 INFO SCM Publisher 7 source files to be analyzed
    2025-08-05T21:08:18.6214078Z 21:08:18.620 INFO SCM Publisher 7/7 source files have been analyzed (done) | time=1639ms
    2025-08-05T21:08:18.7925329Z 21:08:18.791 INFO CPD Executor 196 files had no CPD blocks
    2025-08-05T21:08:18.7959039Z 21:08:18.794 INFO CPD Executor Calculating CPD for 762 files
    2025-08-05T21:08:19.0747807Z 21:08:19.072 INFO CPD Executor CPD calculation finished (done) | time=279ms
    2025-08-05T21:08:21.7432055Z 21:08:21.741 INFO Analysis report generated in 2537ms, dir size=31 MB
    2025-08-05T21:08:26.9345354Z 21:08:26.933 INFO Analysis report compressed in 5190ms, zip size=11 MB
    2025-08-05T21:08:37.6884714Z ##[error]21:08:37.681 ERROR Error during SonarScanner Engine execution
    java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=org-name&projectKey=org-name_project-sfra&projectName=project-sfra
    at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:253)
    at com.sonarsource.scanner.engine.webapi.client.HttpConnector.post(HttpConnector.java:182)
    at com.sonarsource.scanner.engine.webapi.client.HttpConnector.call(HttpConnector.java:138)
    at org.sonar.scanner.http.DefaultScannerWsClient.call(DefaultScannerWsClient.java:54)
    at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:220)
    at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:157)
    at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:184)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:416)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:136)
    at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:53)
    at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:39)
    Caused by: java.net.SocketTimeoutException: timeout
    at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
    at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
    at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:554)
    at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
    at okio.ForwardingSink.write(ForwardingSink.kt:29)
    at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:223)
    at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:256)
    at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:195)
    at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
    at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
    at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:62)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at com.sonarsource.scanner.engine.webapi.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:230)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
    at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
    at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:251)
    … 17 common frames omitted
    Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
    at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
    at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
    at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
    … 33 common frames omitted
    2025-08-05T21:08:37.6896490Z 21:08:37.681 ERROR Error during SonarScanner Engine execution
    2025-08-05T21:08:37.6897134Z java.lang.IllegalStateException: Fail to request https://sonarcloud.io/api/ce/submit?organization=org-name&projectKey=org-name_project-sfra&projectName=project-sfra
    2025-08-05T21:08:37.6897641Z at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:253)
    2025-08-05T21:08:37.6898058Z at com.sonarsource.scanner.engine.webapi.client.HttpConnector.post(HttpConnector.java:182)
    2025-08-05T21:08:37.6898476Z at com.sonarsource.scanner.engine.webapi.client.HttpConnector.call(HttpConnector.java:138)
    2025-08-05T21:08:37.6898902Z at org.sonar.scanner.http.DefaultScannerWsClient.call(DefaultScannerWsClient.java:54)
    2025-08-05T21:08:37.6899290Z at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:220)
    2025-08-05T21:08:37.6899668Z at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:157)
    2025-08-05T21:08:37.6900065Z at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:184)
    2025-08-05T21:08:37.6900476Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    2025-08-05T21:08:37.6901066Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    2025-08-05T21:08:37.6901477Z at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:416)
    2025-08-05T21:08:37.6901980Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    2025-08-05T21:08:37.6902355Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    2025-08-05T21:08:37.6902724Z at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
    2025-08-05T21:08:37.6903099Z at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
    2025-08-05T21:08:37.6903474Z at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
    2025-08-05T21:08:37.6903838Z at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:136)
    2025-08-05T21:08:37.6904195Z at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:53)
    2025-08-05T21:08:37.6904526Z at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:39)
    2025-08-05T21:08:37.6904999Z Caused by: java.net.SocketTimeoutException: timeout
    2025-08-05T21:08:37.6905354Z at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675)
    2025-08-05T21:08:37.6905778Z at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684)
    2025-08-05T21:08:37.6906179Z at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.kt:554)
    2025-08-05T21:08:37.6906570Z at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.kt:532)
    2025-08-05T21:08:37.6906994Z at okio.ForwardingSink.write(ForwardingSink.kt:29)
    2025-08-05T21:08:37.6907382Z at okhttp3.internal.connection.Exchange$RequestBodySink.write(Exchange.kt:223)
    2025-08-05T21:08:37.6907751Z at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:256)
    2025-08-05T21:08:37.6908093Z at okio.RealBufferedSink.writeAll(RealBufferedSink.kt:195)
    2025-08-05T21:08:37.6908448Z at okhttp3.RequestBody$Companion$asRequestBody$1.writeTo(RequestBody.kt:167)
    2025-08-05T21:08:37.6908807Z at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.kt:157)
    2025-08-05T21:08:37.6909155Z at okhttp3.MultipartBody.writeTo(MultipartBody.kt:93)
    2025-08-05T21:08:37.6909517Z at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:62)
    2025-08-05T21:08:37.6910009Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    2025-08-05T21:08:37.6910780Z at com.sonarsource.scanner.engine.webapi.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:230)
    2025-08-05T21:08:37.6911443Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    2025-08-05T21:08:37.6911884Z at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
    2025-08-05T21:08:37.6912298Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    2025-08-05T21:08:37.6912680Z at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
    2025-08-05T21:08:37.6913074Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    2025-08-05T21:08:37.6913460Z at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
    2025-08-05T21:08:37.6913853Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    2025-08-05T21:08:37.6914271Z at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
    2025-08-05T21:08:37.6914685Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    2025-08-05T21:08:37.6915100Z at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
    2025-08-05T21:08:37.6915492Z at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
    2025-08-05T21:08:37.6915905Z at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
    2025-08-05T21:08:37.6916291Z at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
    2025-08-05T21:08:37.6916999Z at com.sonarsource.scanner.engine.webapi.client.HttpConnector.doCall(HttpConnector.java:251)
    2025-08-05T21:08:37.6917321Z … 17 common frames omitted
    2025-08-05T21:08:37.6917619Z Suppressed: okhttp3.internal.http2.StreamResetException: stream was reset: CANCEL
    2025-08-05T21:08:37.6917971Z at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:148)
    2025-08-05T21:08:37.6918360Z at okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:97)
    2025-08-05T21:08:37.6919580Z at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
    2025-08-05T21:08:37.6920242Z at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
    2025-08-05T21:08:37.6920578Z … 33 common frames omitted
    2025-08-05T21:08:37.6920689Z
    2025-08-05T21:08:38.0778012Z 21:08:38.077 INFO EXECUTION FAILURE
    2025-08-05T21:08:38.0799954Z 21:08:38.079 INFO Total time: 5:56.795s
    2025-08-05T21:08:38.1025270Z ##[error][ERROR] SonarQube Cloud: Error while executing task Analyze: The process ā€˜/home/vsts/work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/3.3.0/sonar-scanner/bin/sonar-scanner’ failed with exit code 3
    2025-08-05T21:08:38.1041936Z ##[error]The process ā€˜/home/vsts/work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/3.3.0/sonar-scanner/bin/sonar-scanner’ failed with exit code 3
    2025-08-05T21:08:38.1089398Z ##[section]Finishing: SonarCloudAnalyze
    ā€˜ā€™ā€™
  • Steps to reproduce: Have a big project get analysed with 11MB of Analysis report to be uploaded.
  • Potential workaround: Not sure.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Just confirming we are experiencing the same issue in a (arguably pretty large) typescript codebase. Started failing 2 days ago and have not been able to run it successfully since.

We are using the 2.0 circleci orb but have manually ran it too without success.

Hi,

We are experiencing the same issue. Just wanted to note that this seems to happend when the POST request to https://sonarcloud.io/api/ce/submit exceeds 10 seconds. I just tested in the same project running sonnarscanner cli in my local linux VM the post request takes about 8 seconds and the process continues without an issue. In our CI/CD jenkins node the process takes a bit more and exceeds 10 seconds and crashes with a timeout. The scan is done with the same parameters, branch, code and user.

Hope this helps.

2 Likes

Hi, just confirming we are running into the same issues. It started with 1/10 jobs failing a couple of days ago, but now basically all jobs are failing. Running a typescript project, the resulting ZIP trying to be submitted is just around ~2MB and it’s still timing out.

Tried pinning the previous sonarScanner version (7.1.X), but that didn’t help. Also tried using different node versions, separating the sonarQube scan into it’s own job & runner, a bunch of different arguments, but in the end nothing helped solve the core issue (even though we sometimes randomly got a successful run and thought we had fixed it).

For now we will not waste anymore time trying to fix this on our end, we’ll instead wait for an update in this thread. Thanks for looking into it, the impact on our org (and probably many others aswell) is quite big.