Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13181

camel-salesforce - rest exception parsing produces useless messages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.15.0
    • camel-salesforce
    • None
    • Novice

    Description

      In the case of serialization failures, createRestException swallows the exception and logs the inputstream object itself:

       

      https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/DefaultRestClient.java#L119

       

      This does not tend to produce an error message, as the response is essentially always something like "ByteArrayInputStream@{hashcode}". Perhaps it could try to return the raw contents if it is short and json?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jsightle@redhat.com Jesse Sightler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: