You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Eugene Berman (Jira)" <ji...@apache.org> on 2022/07/24 11:13:00 UTC

[jira] [Created] (CAMEL-18292) Datasonnet expression should not fail if body is empty

Eugene Berman created CAMEL-18292:
-------------------------------------

             Summary: Datasonnet expression should not fail if body is empty
                 Key: CAMEL-18292
                 URL: https://issues.apache.org/jira/browse/CAMEL-18292
             Project: Camel
          Issue Type: Bug
          Components: came-core
    Affects Versions: 3.18.0
            Reporter: Eugene Berman


Sometimes the body of the message is empty (e.g. when handling the GET request), and it causes Datasonnet expression to fail and throw an exception: ```ujson.IncompleteParseException: exhausted input```
The fix would be to internally generate an empty object matching the Datasonnet input media type (e.g. `{}` if the body media type is `application/json`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)