Patch API integration

0
hi everyone , i am getting this error while using call rest in PATCH operation in  a microflow on native mobile app anyone knows its solution ,please help      com.mendix.webui.WebUIException: Exception while executing runtime operation     at com.mendix.webui.actions.client.RuntimeOperationAction.$anonfun$apply$1(RuntimeOperationAction.scala:60) Caused by: com.mendix.modules.microflowengine.MicroflowException: Error calling REST service     at Module.Microflow_2 (CallRest : 'Call REST (PATCH)') Advanced stacktrace:     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: com.mendix.modules.microflowengine.MicroflowException: 400: Bad Request     at Module.Microflow_2 (CallRest : 'Call REST (PATCH)') Advanced stacktrace:     at com.mendix.integration.actions.microflow.RestCallAction.checkStatusCode(RestCallAction.scala:117)  
asked
1 answers
0

Hi Dheeraj,

 

I would suggest to add error handling to the activity ‘Call REST’, such that you can check the $latestHttpResponse object. This object contains very valuable information, you can log or debug. Hopefully this provides the information what exactly is wrong with the API-call, as 400 http error code means that's something is off (wrong data provided).

If you can share that, we can help better!

 

answered