BPM Studio POST is not working

I have a BPM workflow where the GET operations are working fine. However when I create POST operation with JSON payload as per the instruction I keep getting the java.lang.IllegalStateException: RESTEASY003765: Response is closed. This is happening for even a simple json payload of one attribute. Am I doing anything wrong here? If yes can someone explain the right way of creating a payload for a POST request.




Error Stack Trace
[l-5059-thread-1] com.axelor.script.GroovyScriptHelper : Script error: def _res = beans.get(Class.forName(‹ com.axelor.studio.service.ws.WsConnectorService ›)).callConnector(ctx.filterOne(‹ WsConnector ›,‹ self.name = ?1 ›, ‹ Book Connector ›).getTarget(), null, [measureProcess : measureProcess]).get(« _3 »)
java.lang.IllegalStateException: RESTEASY003765: Response is closed.
at org.jboss.resteasy.specimpl.AbstractBuiltResponse.abortIfClosed(AbstractBuiltResponse.java:308)
at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.abortIfClosed(ClientResponse.java:301)
at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:61)
at org.jboss.resteasy.specimpl.AbstractBuiltResponse.readEntity(AbstractBuiltResponse.java:262)
at com.axelor.studio.service.ws.WsConnectorServiceImpl.addAttachement(WsConnectorServiceImpl.java:610)
at com.axelor.studio.service.ws.WsConnectorServiceImpl.callConnector(WsConnectorServiceImpl.java:274)
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)
at Script_21773fba910698928f5eccc3bfdd36da.run(Script_21773fba910698928f5eccc3bfdd36da.groovy:1)
at com.axelor.script.GroovyScriptHelper.eval(GroovyScriptHelper.java:153)
at com.axelor.script.AbstractScriptHelper.eval(AbstractScriptHelper.java:91)
at com.axelor.studio.bpm.script.AxelorScriptEngine.eval(AxelorScriptEngine.java:48)
at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:231)
at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluateScript(SourceExecutableScript.java:125)
at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluate(SourceExecutableScript.java:65)
at org.camunda.bpm.engine.impl.scripting.ExecutableScript.execute(ExecutableScript.java:63)
at org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment.execute(ScriptingEnvironment.java:99)
at org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment.execute(ScriptingEnvironment.java:87)
at org.camunda.bpm.engine.impl.delegate.ScriptInvocation.invoke(ScriptInvocation.java:47)
at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:58)
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:92)
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:63)
at org.camunda.bpm.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior$1.call(ScriptTaskActivityBehavior.java:55)
at org.camunda.bpm.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior$1.call(ScriptTaskActivityBehavior.java:51)
at org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.executeWithErrorPropagation(AbstractBpmnActivityBehavior.java:90)
at org.camunda.bpm.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior.performExecution(ScriptTaskActivityBehavior.java:51)
at org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior.execute(TaskActivityBehavior.java:69)
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute$2.callback(PvmAtomicOperationActivityExecute.java:61)
at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute$2.

Sorry no idea of why and no more responses from the axelor staff on this forum. Fewer and fewer people on this forum, and that’s very sad.