question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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&currentPage=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: image

  • OS: Windows

  • Browser: chrome

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
LTiger14commented, Jul 26, 2021

Can be resolved by updating the findComponentsByIds to split the request in multiple parts. Talk to me about the implementation details.

0reactions
KateChuencommented, May 4, 2022

Confirmed with Wei that when it’s -ve, then no ids are retrieved, thus nothing is loaded.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found