6 Replies Latest reply on Jul 12, 2017 6:30 AM by Sidharda Chava

    Groovy Executejob api fails during execution as contenttype "application/json" is not recognised

    Sidharda Chava

      Hi,

      I am just trying rest APIs through groovy console.

       

      when i set

      response = executeRequest(url, "POST", payload.toString(), "application/json") it fails with below error

       

      ContentType is null or incorrect format.

      Exception thrown

       

      groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

       

      The current character read is '<' with an int value of 60

      Unable to determine the current character, it is not a string, number, array, or object

       

      Your help is appreciated