You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Olivier Jacquemart (Jira)" <ji...@apache.org> on 2024/11/12 09:30:00 UTC
[jira] [Created] (CAMEL-21437) More logs in case of an invalid json object
Olivier Jacquemart created CAMEL-21437:
------------------------------------------
Summary: More logs in case of an invalid json object
Key: CAMEL-21437
URL: https://issues.apache.org/jira/browse/CAMEL-21437
Project: Camel
Issue Type: Improvement
Components: camel-core
Affects Versions: 4.8.1, 4.8.0
Reporter: Olivier Jacquemart
At the moment, the [DefaultRestClientRequestValidator|https://github.com/apache/camel/blob/main/core/camel-support/src/main/java/org/apache/camel/support/processor/DefaultRestClientRequestValidator.java] not give any information in case of an invalid json object.
It could be nice to have more info like a log in that particular case (and maybe other cases like empty body, not allowed query params or http headers).
About the json validation, the json-validator module has another approach and allows to catch exception so we can decide what exception to log.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)