Support Article

PRGateway Exception when using Microsite link from an email

SA-36348

Summary



An email with microsite link is send to a contact.

The contact is trying to open it from the link and is getting the error: "
PRGateway Exception: error response from PRPC".

It is working in Developer environment and not working in Test Environment.

Error Messages



"PRGateway Exception: error response from PRPC".


Steps to Reproduce

  1. Send a mail from a secured environment, adding the microsite link.
  2. Then try to open the link from email.


Root Cause



A configuration issue in PRPC.

In the Test environment, URL encryption was activated on the PRPC server.

The Mashup gadget used by the Microsite feature was not configured to use encryption. Hence unencrypted request sent to the PRPC server resulted on an error.


Resolution



Perform the following local-change:

Out-of-the-box (OOTB), the index.html page (on the MS.war file used for the Microsite feature) contain a Mashup gadget which is not using encryption:


<html>
<head>
<script src="PegaInternetApplicationComposer.js"></script>
<script src="PegaInternetApplicationComposerNBAM.js"></script>
<script type="text/javascript">
document.write("<title>" + getParamVal("Site") + "</title>");
</script>

<script>
pega.web.config.encrypt =false;
pega.web.config.gatewayURL = "/prgateway/PRPCGateway/";
pega.web.config.appName = "PegaMarketing";
pega.web.config.systemID = "NBAM";
pega.web.config.thread = "STANDARD";
</script>



By changing the encryption to true, the issue gets resolved:

pega.web.config.encrypt =true;

Published April 11, 2017 - Updated February 28, 2018

Have a question? Get answers now.

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