RestRequest.executeUnparsed() can fail in error handling

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.0
    • Affects Version/s: None
    • Component/s: libraries
    • None

      In RestRequest.executeUnparsed(), if we get a bad HTTP response code, we try to extract the error message from the response by parsing it as JSON. Github will sometimes not respond with JSON but instead with a webpage, which fails to parse. This failure to parse is thrown as an IllegalStateException which is not always handled well in layers above.

      We need to catch any exception caused by failing to parse the message as JSON so that they do not hide the real UncheckedRestException.

            Assignee:
            Zhao Song
            Reporter:
            Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: