Uploaded image for project: 'SonarLint Core Library'
  1. SonarLint Core Library
  2. SLCORE-300

Bad exception when server is unavailable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 8.0
    • Component/s: Core
    • Labels:
      None

      Description

      When server returns 503:

      org.sonarsource.sonarlint.core.client.api.exceptions.DownloadException: Failed to update file issues: org.sonarsource.sonarlint.shaded.com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 22 path $
      	at org.sonarsource.sonarlint.core.container.storage.partialupdate.PartialUpdater.updateFileIssues(PartialUpdater.java:69)
      	at org.sonarsource.sonarlint.core.container.storage.StorageContainerHandler.downloadServerIssues(StorageContainerHandler.java:158)
      	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.lambda$downloadServerIssues$14(ConnectedSonarLintEngineImpl.java:246)
      	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withRwLock(ConnectedSonarLintEngineImpl.java:333)
      	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.downloadServerIssues(ConnectedSonarLintEngineImpl.java:244)
      

        Attachments

          Activity

            People

            Assignee:
            damien.urruty Damien Urruty
            Reporter:
            julien.henry Julien Henry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: