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

Static content like CSS, JS not getting loaded thru IAC

SA-41422

Summary



In a harness loaded through IAC through GatewayManager, static resources are not loaded. "Invalid URL format for static content request" error in the logs.

The URL format for static content when loaded directly -
/prweb13/PRSecureServlet/R0Wm-fO1DyGfV25xIgAotVfYJgJhWjNy*/webwb/pega_yui_styles_11141579935!!.css
/prweb13/PRSecureServlet/R0Wm-fO1DyGfV25xIgAotVfYJgJhWjNy*/webwb/pega_yui_container_11914609490.js!!.js

The URL format for static content when loaded thru IAC -
/!GlobalDisputes/webwb/pega_yui_styles_11141579935!!.css
/!GlobalDisputes/webwb/pega_yui_container_11914609490.js!!.js


Error Messages



2017-06-15 13:27:21,324 [ WebContainer : 13] [ ] [ ] [ ] (ticcontent.StaticContentClient) ERROR - Invalid URL format for static content request:/!GlobalDisputes/webwb/pega_yui_styles_11141579935!!.css
2017-06-15 13:27:21,507 [ WebContainer : 28] [ ] [ ] [ ] (ticcontent.StaticContentClient) ERROR - Invalid URL format for static content request:/!GlobalDisputes/webwb/css/pzbasecore_12926014942.css!pzbasegadgets_13597983262.css!workform_compositebrand_175454550.css!!.css


Steps to Reproduce



1. Create a harness and render it using a flow.
2. Setup IAC thru gateway manager to invoke the flow.


Root Cause



There was a misconfiguration in gateway PING call.

Resolution



Perform the following local-change:

User modified the gateway PING call method from 'GET' to 'POST', which then set right context for the rest of the gadget load.

function pega.web.mgr._pingGateway()
{
try {
var pingCallbackObj = {
success: pega.web.mgr._pingGatewayCallback,
failure: _divError
};
pega.util.Connect.asyncRequest("GET", pega.web.config.gatewayURL + "?pyActivity=PRGatewayPing", pingCallbackObj, "");
pega.web.mgr._logMsg("info", "", "Application", "Pinged gateway to find gateway session cookie");
} catch (e) {
pega.web.mgr._logMsg("info", "", "Application", "Exception inside pingGateWay" + e);
};
};


Changed to method from 'GET' to 'POST'.
--------------------------------------------------------
pega.util.Connect.asyncRequest("POST", pega.web.config.gatewayURL + "?pyActivity=PRGatewayPing", pingCallbackObj, "");


Published August 26, 2017 - 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