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

SA-10590

Summary



Connect-REST is unable to process multipart JSON response. it throws error 'com.pega.pegarules.pub.services.InboundMappingException: Could not write response entity to output stream'.

Error Messages



'com.pega.pegarules.pub.services.InboundMappingException: Could not write response entity to output stream'.
 at com.pega.pegarules.integration.engine.internal.connect.http.HTTPClient.getReponseData(HTTPClient.java:584) 
 at com.pega.pegarules.integration.engine.internal.util.PRServiceUtils.getReponseData(PRServiceUtils.java:3143) 
 at com.pegarules.generated.activity.ra_action_pyinvokerestconnector_ea5a601f5c30c4d8bb2e5da269e20397.step5_circum0(ra_action_pyinvokerestconnector_ea5a601f5c30c4d8bb2e5da269e20397.java:1481) 
 at com.pegarules.generated.activity.ra_action_pyinvokerestconnector_ea5a601f5c30c4d8bb2e5da269e20397.perform(ra_action_pyinvokerestconnector_ea5a601f5c30c4d8bb2e5da269e20397.java:137) 
 at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3375) 
 at com.pegarules.generated.activity.ra_action_invoke_6a91441c4f6e5048b63360383ae1b952.step7_circum0(ra_action_invoke_6a91441c4f6e5048b63360383ae1b952.java:1002) 
 at com.pegarules.generated.activity.ra_action_invoke_6a91441c4f6e5048b63360383ae1b952.perform(ra_action_invoke_6a91441c4f6e5048b63360383ae1b952.java:172) 
 at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3375) 



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.

Resolution



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