[
https://issues.apache.org/jira/browse/CAMEL-13181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17068016#comment-17068016
]
Soann Dewasme commented on CAMEL-13181:
---------------------------------------
I would like to start contribute to this amazing framework, and I guess this
minor improvement one is a good starting point !
Maybe should we go further on this ?
I mean we can add an optional parameter (like `displayMessageContentInError`
default `false`) that is conditionally manage the raw message content in case
of error like this ? I don't like to add extra code to print content when
debuging... So suppose this can be useful when developing !
> camel-salesforce - rest exception parsing produces useless messages
> -------------------------------------------------------------------
>
> Key: CAMEL-13181
> URL: https://issues.apache.org/jira/browse/CAMEL-13181
> Project: Camel
> Issue Type: Improvement
> Components: camel-salesforce
> Reporter: Jesse Sightler
> Priority: Minor
>
> 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?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)