/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/page-data-collection-timeout.mdx
21 строка
910 B
Delba de Oliveira
docs: Migrate error messages to MDX and App Router. (#52038)
05 июл 2023, 16:11
Не верифицирован
05 июл 2023, 16:11
44d1a1c
Код
Авторство
О чём код?
--- title: 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). ## Useful Links - [`getStaticPaths`](/docs/pages/building-your-application/data-fetching/get-static-paths) - [`getStaticProps`](/docs/pages/building-your-application/data-fetching/get-static-props)