Rest call error

0
Hi all, By a Rest call, I’m getting this pop-up: ‘ An error has occurred, please contact your system administrator’ This pop-ups (after +/- 15 seconds from the start of the action) while the Rest call is busy with getting data, and despite the error, the Rest call continues and gets the correct response. The MF continues further without any issues till the end of the flow, but no document gets downloaded. Any idea what the problem could be? In the browser/console I see this error: VM10 mxui.js:80 Error     at new t (VM10 mxui.js:40)     at VM10 mxui.js:35     at VM10 mxui.js:20     at Object.next (VM10 mxui.js:20)     at a (VM10 mxui.js:20) (anonymous) @ VM10 mxui.js:80 7VM10 mxui.js:80 SyntaxError: Unexpected token < in JSON at position 0 (anonymous) @ VM10 mxui.js:80 2VM10 mxui.js:80 MicroflowTimer_widget_MicroflowTimer_0: An error ocurred while executing microflow:  SyntaxError: Unexpected token < in JSON at position 0 (anonymous) @ VM10 mxui.js:80    
asked
2 answers
0

Set your logging RESTConsume to trace so you can see in your console what goes over the line. This way you can see the response from the other side. Then check you import mapping.

Regards,

Ronald

 

answered
0

The error message says the JSON you are trying to import starts with ‘<‘, and that is invalid. 
 

It could be that XML or an HTML error message is being returned from your REST call.

 

As Ronald suggests, setting the log level for REST Consume to trace will show the contents of the REST calls in your log files, and should show what is going on.

answered