Consuming REST API

0
I am trying to consume a rest api and getting these errors. In Connector Log Node:  An error has occurred while handling the request. [User 'Anonymous_5707d8ad-9752-48b1-9ea6-3a826f59be08' with session id '075a9de5-XXXX-XXXX-XXXX-XXXXXXXXbf5f' and roles 'Administrator'] com.mendix.webui.WebUIException: Exception while retrieving data for 'MyFirstModule.Home_Web.listView1' on document 'MyFirstModule.Home_Web'     at com.mendix.webui.actions.client.RetrieveAction.$anonfun$apply$3(RetrieveAction.scala:94)   In Client Log Node: Caused by: com.mendix.modules.microflowengine.MicroflowException: Error calling REST service     at MyFirstModule.Microflow (CallRest : 'Call REST (GET)')   An error occurred while executing microflow data source for widget MyFirstModule.Home_Web.listView1:  Error: An error occurred while executing microflow data source for widget MyFirstModule.Home_Web.listView1:      at http://localhost:8080/mxclientsystem/mxui/mxui.js?638230327039393789:68:165861
asked
2 answers
0

try to put an error handling on your rest action : 

 

Doing so you should be able to catch the latesthttpresponse object, this object will indicate you the specific error (message and status code)

 

https://docs.mendix.com/refguide/error-handling-in-microflows/

answered
0

Hi Aditya,

 

Hard to tell. Doesn’t look like a rest api problem, but a data source problem in your listView1. Possibly with  a microflow as source?  First thing to double check: your security. Does Administrator have all the proper rights?

answered