Support Article
HTTP 400 error when requesting static content
SA-90734
Summary
When requesting for static content bundles, HTTP 400 error occurs for large bundles and a blank screen displays when logging in to the application.
Error Messages
HTTP 400 Bad Request
Steps to Reproduce
Install Web Application Server on Windows and use the Windows Internet Information Server (ISS).
Root Cause
When the Windows HTTP.sys layer handled the requests, the default URLSegmentMaxLength is 260. The length of the segment containing the static content bundle is larger than this default value for serveral of the static content bundles.
URL:
http://<prpc_server>/prweb/PRServlet/uoHmzmd6qacVbHfcOmaz67ZgHbl8F3bam1AUGou7aQw%5B*/webwb/pega_yui_utilities_11839686726.js!pega_yui_connection_11271599816.js!pega_yui_extensions_13798818374.js!pzpega_yui_extensions_plus_1116219972.js!pega_tools_hashtable_12178617991.js!safeurl_1397620472.js!pegacompositegadgetmgr_11145695129.js!pega_ui_property_13141858870.js!!.js
URL Segment (area between the slashes in the URL):
pega_yui_utilities_11839686726.js!pega_yui_connection_11271599816.js!pega_yui_extensions_13798818374.js!pzpega_yui_extensions_plus_1116219972.js!pega_tools_hashtable_12178617991.js!safeurl_1397620472.js!pegacompositegadgetmgr_11145695129.js!pega_ui_property_13141858870.js!!.js
This segment length is 277 and the default value for HTTP.sys is 260. Hence, this request resulted in a HTTP 400 Bad Request from the Windows HTTP.sys layer.
Resolution
Add or update the Registry setting for URLSegmentMaxLength.
Consult the Microsoft documentation for the DWORD values under the below Registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters
Published October 22, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.