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

Datasonnet expression should not fail if body is empty

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.0
    • 3.18.1, 3.19.0
    • None
    • None
    • Unknown

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              javaduke Eugene Berman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: