RevalidateTag timeouts
Unanswered
Siamese Crocodile posted this in #help-forum
Siamese CrocodileOP
Hi. I've a function thats cached infinitely using
This fetch takes some time and I guess thats why it timeouts because when I make it faster e.g. query smaller amount of items - revalidation works properly.
Can I somehow extend it?
unstable_cache and when I revalidate it using revalidateTag I am getting an errorFailed to revalidate tag games TypeError: fetch failed
at node:internal/deps/undici/undici:12345:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at runNextTicks (node:internal/process/task_queues:64:3)
at process.processImmediate (node:internal/timers:449:9)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
at async rF.revalidateTag (/var/task/node_modules/.pnpm/next@14.2.0_@babel+core@7.24.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/next-server/server.runtime.prod.js:17:16933)
at async Promise.all (index 0) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (node:internal/deps/undici/undici:7492:28)
at node:internal/deps/undici/undici:7448:50
at Immediate._onImmediate (node:internal/deps/undici/undici:7480:13)
at process.processImmediate (node:internal/timers:478:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}This fetch takes some time and I guess thats why it timeouts because when I make it faster e.g. query smaller amount of items - revalidation works properly.
Can I somehow extend it?