Requesting a large amount of components at once from the CmsService is failing
See original GitHub issue-
Description: In my project I have a very large navigation tree. Once the CategoryNavigationComponent/NavigationService try to retrieve the navigation-node-components, all the requests are sent to the CmsService at once. The call to the backend then looks like this:
/cms/components?fields=DEFAULT¤tPage=0&pageSize=713&componentIds=<huge_list_of_components>
Which results in a server error: Status Code: 431 Request Header Fields Too Large -
Library version: 3.4
-
Screenshot:
-
OS: Windows
-
Browser: chrome
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Type 'TestComponent' has no properties in common with type ...
And I am trying to get the data from the Angular component. constructor(private componentData: CmsComponentData, private cmsService: CmsService) ...
Read more >vSEC:CMS FAQ - Versasec
I get an error: Failed to submit certificate request: Data present in one of the parameters is more than the function can operate...
Read more >"[CMSREFTABLE_10022] Cannot create audit tables ... - ERROR
This issue occurs if some of the audit tables that already exist in the Oracle database schema are used for creating the content....
Read more >Technical Changes in Spartacus 2.0 - SAP
Each change immediately triggers an update in the API. The default value is also set on the API during component initialization. As a...
Read more >RFC 3261: SIP: Session Initiation Protocol
1 Generating the Request A valid SIP request formulated by a UAC MUST, at a minimum, contain the following header fields: To, From,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can be resolved by updating the
findComponentsByIds
to split the request in multiple parts. Talk to me about the implementation details.Confirmed with Wei that when it’s -ve, then no ids are retrieved, thus nothing is loaded.