SonarJS okhttp3.RealCall.timeoutExit

  • SQ: 7.9.0 LTS
  • SonarJS 5.2.1.7778 (javascript)

During a analysis (~1h), I have the following error. What it means and how to correct it?

xxx/ol-debug.js
2019-08-28 17:16:29 java.io.InterruptedIOException: timeout
2019-08-28 17:16:29 at okhttp3.RealCall.timeoutExit(RealCall.java:108)
2019-08-28 17:16:29 at okhttp3.RealCall.execute(RealCall.java:97)
2019-08-28 17:16:29 at org.sonar.plugins.javascript.eslint.EslintBridgeServerImpl.call(EslintBridgeServerImpl.java:159)
2019-08-28 17:16:29 at org.sonar.plugins.javascript.eslint.EslintBasedRulesSensor.analyze(EslintBasedRulesSensor.java:124)
2019-08-28 17:16:29 at org.sonar.plugins.javascript.eslint.EslintBasedRulesSensor.execute(EslintBasedRulesSensor.java:100)
2019-08-28 17:16:29 at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
2019-08-28 04:38:42 at

Do you see other exceptions in the logs? e.g. related to memory consumption.
Is this file big?

Excluding this file should eliminate the problem.

Hi Elena,

The file is quite large:
[scm@BUILD-RH7-18 ol]$ ll -h ol-debug.js
-rw-r–r–. 1 scm scm 2.5M Mar 1 17:09 ol-debug.js

This file is analyzed along with the one reported in:

The sequence is:

2019-08-30 04:22:55 [INFO] 399/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/jscss/ol/ol-debug.js
2019-08-30 04:23:05 [INFO] 399/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/jscss/ol/ol-debug.js
2019-08-30 04:23:15 [INFO] 399/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/jscss/ol/ol-debug.js
2019-08-30 04:23:25 [INFO] 406/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/moment.js/moment-with-locales.js
2019-08-30 04:23:35 [INFO] 425/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/primefaces-efaextensions/efacec/lib/calheatmap/3_5_0/cal-heatmap.js
2019-08-30 04:23:45 [INFO] 432/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/primefaces-efaextensions/efacec/lib/flot/jquery.flot.js
2019-08-30 04:23:55 [INFO] 437/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/primefaces-efaextensions/efacec/lib/highcharts/4_2_1/highcharts.src.js
2019-08-30 04:24:05 [INFO] 437/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/primefaces-efaextensions/efacec/lib/highcharts/4_2_1/highcharts.src.js
2019-08-30 04:24:15 [INFO] 446/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/primefaces-efaextensions/efacec/lib/leaflet/leaflet.js
2019-08-30 04:24:25 [INFO] 451/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/primefaces-efaextensions/efacec/lib/sparkline/jquery.sparkline.js
2019-08-30 04:24:31 [INFO] Sensor SonarJS [javascript] (done) | time=3756178ms
2019-08-30 04:24:31 [INFO] Sensor ESLint-based SonarJS [javascript]
2019-08-30 04:24:31 [INFO] 460/460 source files have been analyzed
2019-08-30 04:24:34 [INFO] 460 source files to be analyzed
2019-08-30 04:24:44 [INFO] 198/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/highcharts/es-modules/modules/vector.src.js
2019-08-30 04:24:54 [INFO] 304/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/highcharts/highcharts.src.js
2019-08-30 04:25:04 [INFO] 342/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/highcharts/modules/organization.src.js
2019-08-30 04:25:14 [INFO] 399/460 files analyzed, current file: scatexweb-base/src/main/webapp/resources/jscss/ol/ol-debug.js
2019-08-30 04:25:19 [ERROR] Failed to get response while analyzing file:///builds/auto/Sonar/PROD_P2/mod-web/frontend-packages/scatexweb-base/src/main/webapp/resources/jscss/ol/ol-debug.js
2019-08-30 04:25:19 java.io.InterruptedIOException: timeout
2019-08-30 04:25:19 	at okhttp3.RealCall.timeoutExit(RealCall.java:108)

Hi,

Do you have news regarding this topic?

Thank you

We are currently working on the next version of JS analyzer, it might resolve your problem.
I suggest now you exclude this file and when next JS version (6.0) is released, try to put it back.

Hi,

Thank you for your feedback.