Internal error

0
com.mendix.modules.microflowengine.MicroflowException: Error parsing JSON. Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')  at [Source: (org.apache.http.conn.EofSensorInputStream); line: 1, column: 2]     at MyFirstModule.CWS_GetEmployees (CallRest : 'Call REST (GET)') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:83) Caused by: com.mendix.integration.importer.ImportParseException: Error parsing JSON. Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
asked
1 answers
3

That looks like the JSON you are parsing is probably coming from a web service that is returning an HTML error message instead of JSON.

To test this, set the log level of the REST Consume log node in the console to TRACE. This will echo the request and the response of the REST call to the console for you to visually inspect. I suspect you will see an HTML error message in the response.

I hope this helps. Good luck!

answered