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

camel-salesforce - rest exception parsing produces useless messages

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      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

            • Assignee:
              Unassigned
              Reporter:
              jsightle@redhat.com Jesse Sightler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: