Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to map response from REST connector



Connect-REST is unable to process multipart JSON response. it throws error ' Could not write response entity to output stream'.

Error Messages

' Could not write response entity to output stream'.
 at com.pega.pegarules.integration.engine.internal.connect.http.HTTPClient.getReponseData( 
 at com.pega.pegarules.integration.engine.internal.util.PRServiceUtils.getReponseData( 
 at com.pegarules.generated.activity.ra_action_pyinvokerestconnector_ea5a601f5c30c4d8bb2e5da269e20397.step5_circum0( 
 at com.pegarules.generated.activity.ra_action_pyinvokerestconnector_ea5a601f5c30c4d8bb2e5da269e20397.perform( 
 at com.pega.pegarules.session.internal.mgmt.Executable.doActivity( 
 at com.pegarules.generated.activity.ra_action_invoke_6a91441c4f6e5048b63360383ae1b952.step7_circum0( 
 at com.pegarules.generated.activity.ra_action_invoke_6a91441c4f6e5048b63360383ae1b952.perform( 
 at com.pega.pegarules.session.internal.mgmt.Executable.doActivity( 

Steps to Reproduce

1. Create Connect-Rest and have it process multipart JSON response.

Root Cause

The root cause of this problem is a defect in Pegasystems’ code/rules.


Local change:
change the service so response is sent as non-multipart; BUG-204195 is raised for this issue.

Published June 12, 2015 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us