The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

Recommended Posts

Posted

Hi,

Checking if this is a known issue on issue and/or a recommended approach to properly handle a REST service call with empty response. Problem here is that I am invoking a REST service and some scenario it will return a HTTP 204 - No Content, but TIBCO BPM throws below error

 

Caused by: com.tibco.bx.core.faults.BxException: org.osoa.sca.ServiceRuntimeException: Error Handling REST Response: HTTP response entity is null.

at com.tibco.bx.core.behaviors.activity.BxRestBtInvokeBehavior.doExternal(BxRestBtInvokeBehavior.java:371)

at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.handleModelEvent(BxActivityBaseBehavior.java:1178)

...

 

I already added a Fault property in our RSD to catch the 204 code but it still encountered the same issue. Seems like this scenario is not being considered as a fault as HTTP 204 is really not an error and thus it always expects a response body for a succesful invocation of a REST service.

  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...