Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10592

Rest API: Exceptions are sent as HTML instead of JSON

XMLWordPrintable

      Root cause

      • the REST API JAX-RS application does not register the generic exception handler that handles all exceptions

      Reproduction

      What are the steps to reproduce your problem?
      1. Use docker image of camunda tomcat distribution 7.10.7-ee to install the camunda platform
      2. Cause an exception in a process - e.g. a field is not there - causing a NullPointerException. Sample bpmn file is attached for details.

      What is the problem?
      The Rest-API returns an HTML instead of a JSON. See Attachment.

      What would be the expected behavior:
      According to documentation it should return a JSON object. -see https://docs.camunda.org/manual/7.10/reference/rest/overview/#error-handling

      Attached is the bpmn diagram and rest api screenshot for more details.

        This is the controller panel for Smart Panels app

          1. sample.bpmn
            5 kB
            Garima Yadav
          2. Screenshot 2019-07-09 at 13.18.12.png
            446 kB
            Garima Yadav

              Unassigned Unassigned
              garima.yadav Garima Yadav
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: