rsnext/errors/page-data-collection-timeout.md
Maedah Batool 60488e68e3
Fix broken data fetching links in docs (#33766)
* Fix broken links for Data Fetching

* Fix link data fetching doc

* Improve link file paths

* Update errors/large-page-data.md

Co-authored-by: Steven <steven@ceriously.com>

* Update links

* Fix linting

* Lint tests

* Lint tests

Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2022-04-22 14:03:07 +02:00

904 B

Collecting page data timed out after multiple attempts

Why This Error Occurred

Next.js tries to restart the worker pool of the page data collection when no progress happens for a while, to avoid hanging builds.

When restarted it will retry all uncompleted jobs, but if a job was unsuccessfully attempted multiple times, this will lead to an error.

Possible Ways to Fix It

  • Make sure that there is no infinite loop during execution.
  • Make sure all Promises in getStaticPaths resolve or reject correctly.
  • Avoid very long timeouts for network requests.
  • Increase the timeout by changing the config.staticPageGenerationTimeout configuration option (default 60 in seconds).