You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Soann Dewasme (Jira)" <ji...@apache.org> on 2020/03/26 20:33:00 UTC
[jira] [Comment Edited] (CAMEL-13181) camel-salesforce - rest
exception parsing produces useless messages
[ https://issues.apache.org/jira/browse/CAMEL-13181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17068016#comment-17068016 ]
Soann Dewasme edited comment on CAMEL-13181 at 3/26/20, 8:32 PM:
-----------------------------------------------------------------
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 debugging... So suppose this can be useful when developing !
was (Author: soann dewasme):
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)