Open Yazan-Ali-01 opened 6 months ago
Update :
pnpm mysql:push
was a problem related to ssl and fixed by changing rejectUnauthorized to false in
const csMysql: string = addQueryParamIfMissed(
env.DATABASE_URL,
"ssl",
JSON.stringify({ rejectUnauthorized: true}),
);
now still unable to start the project and get that fetch failed with that error in my console
⨯ TypeError: fetch failed
at async postJSON (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\node_modules__pnpm_d13f88._.js:9116:22)
at async Connection.execute (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\node_modules__pnpm_d13f88._.js:9069:23)
at async PlanetScalePreparedQuery.execute (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\f7e7d_drizzle-orm_fef8ce._.js:1788:26)
at async FeaturedStoreItems (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\src_islands_664158._.js:990:26)
digest: "2865587536"
Cause: Error: getaddrinfo ENOTFOUND undefined
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'undefined'
}
⨯ TypeError: fetch failed
at async postJSON (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\node_modules__pnpm_d13f88._.js:9116:22)
at async Connection.execute (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\node_modules__pnpm_d13f88._.js:9069:23)
at async PlanetScalePreparedQuery.execute (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\f7e7d_drizzle-orm_fef8ce._.js:1788:26)
at async FeaturedStoreItems (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\src_islands_664158._.js:990:26)
digest: "2865587536"
Cause: Error: getaddrinfo ENOTFOUND undefined
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'undefined'
}
GET / 500 in 79443ms
@Yazan-Ali-01 you are not using the public provider for the DataBase, local/private is not yet supported, to use the local/private database you can refer to this branch from my fork https://github.com/vikas0380/relivator-nextjs-template/tree/private-provider, I have created Pull request as well https://github.com/blefnk/relivator-nextjs-template/pull/29.
@vikas0380 Thanks but the problem about "fetch failed" still exists. it's only fixed if I comment FeaturedStoreItems in src\app[locale]\page.tsx one note is if I also navigate to http://localhost:3000/products (even with FeaturedStoreItems commented) I get the same fetch failed error but this time something related to authentication I'm very sorry but hince I didn't even get into the code I can't analyze any problem or any bug here is the error in my console
GET / 200 in 1910ms
GET /api/auth/session 200 in 1690ms
⨯ createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component
at createContextAndHook (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:695:451)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:725:55
at [project]/node_modules/.pnpm/@clerk+shared@2.0.0_react-dom@19.0.0-canary-33a32441e9-20240418_react@19.0.0-canary-33a32441e9-20240418/node_modules/@clerk/shared/dist/react/index.mjs [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:1330:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\a82fd_@clerk_clerk-react_dist_a8e2ab._.js:50:351
at [project]/node_modules/.pnpm/@clerk+clerk-react@5.0.0_eslint-ts-patch@8.57.0-0_react-dom@19.0.0-canary-33a32441e9-20240418_ew6bd72ryzfejon4mjo6vx5you/node_modules/@clerk/clerk-react/dist/chunk-H36HJF5O.mjs [app-route] (ecmascript) <locals> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\a82fd_@clerk_clerk-react_dist_a8e2ab._.js:474:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\3bd4e_@clerk_nextjs_dist_esm_5d047f._.js:1419:398
at [project]/node_modules/.pnpm/@clerk+nextjs@5.0.1_eslint-ts-patch@8.57.0-0_next@14.3.0-canary.14_react-dom@19.0.0-canary-33_dq2lsrqadznom5n2qifaaiiqpe/node_modules/@clerk/nextjs/dist/esm/index.js [app-route] (ecmascript) <exports> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\3bd4e_@clerk_nextjs_dist_esm_5d047f._.js:1426:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:174:394
at [project]/src/utils/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:386:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1260:127
at [project]/src/data/db/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1349:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1368:132
at [project]/src/core/auth/authjs/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1449:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1458:144
at [project]/src/app/api/auth/[...nextauth]/route.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1465:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\11cf5_next_f08009._.js:8527:162
at [project]/node_modules/.pnpm/next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru/node_modules/next/dist/esm/build/templates/app-route.js { INNER_APP_ROUTE => "[project]/src/app/api/auth/[...nextauth]/route.ts [app-route] (ecmascript)" } [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\11cf5_next_f08009._.js:8562:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at instantiateRuntimeModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:580:12)
at Object.getOrInstantiateRuntimeModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:595:12)
at Object.<anonymous> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\app\api\auth\[...nextauth]\route.js:20:26)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at mod.require (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\node_modules\.pnpm\next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru\node_modules\next\dist\server\require-hook.js:65:28)
at require (node:internal/modules/helpers:176:18)
at requirePage (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\node_modules\.pnpm\next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru\node_modules\next\dist\server\require.js:109:84) {
page: '/api/auth/session'
}
⨯ createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component
at createContextAndHook (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:695:451)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:725:55
at [project]/node_modules/.pnpm/@clerk+shared@2.0.0_react-dom@19.0.0-canary-33a32441e9-20240418_react@19.0.0-canary-33a32441e9-20240418/node_modules/@clerk/shared/dist/react/index.mjs [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:1330:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\a82fd_@clerk_clerk-react_dist_a8e2ab._.js:50:351
at [project]/node_modules/.pnpm/@clerk+clerk-react@5.0.0_eslint-ts-patch@8.57.0-0_react-dom@19.0.0-canary-33a32441e9-20240418_ew6bd72ryzfejon4mjo6vx5you/node_modules/@clerk/clerk-react/dist/chunk-H36HJF5O.mjs [app-route] (ecmascript) <locals> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\a82fd_@clerk_clerk-react_dist_a8e2ab._.js:474:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\3bd4e_@clerk_nextjs_dist_esm_5d047f._.js:1419:398
at [project]/node_modules/.pnpm/@clerk+nextjs@5.0.1_eslint-ts-patch@8.57.0-0_next@14.3.0-canary.14_react-dom@19.0.0-canary-33_dq2lsrqadznom5n2qifaaiiqpe/node_modules/@clerk/nextjs/dist/esm/index.js [app-route] (ecmascript) <exports> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\3bd4e_@clerk_nextjs_dist_esm_5d047f._.js:1426:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:174:394
at [project]/src/utils/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:386:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1260:127
at [project]/src/data/db/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1349:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1368:132
at [project]/src/core/auth/authjs/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1449:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1458:144
at [project]/src/app/api/auth/[...nextauth]/route.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1465:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\11cf5_next_f08009._.js:8527:162
at [project]/node_modules/.pnpm/next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru/node_modules/next/dist/esm/build/templates/app-route.js { INNER_APP_ROUTE => "[project]/src/app/api/auth/[...nextauth]/route.ts [app-route] (ecmascript)" } [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\11cf5_next_f08009._.js:8562:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at instantiateRuntimeModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:580:12)
at Object.getOrInstantiateRuntimeModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:595:12)
at Object.<anonymous> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\app\api\auth\[...nextauth]\route.js:20:26)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at mod.require (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\node_modules\.pnpm\next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru\node_modules\next\dist\server\require-hook.js:65:28)
at require (node:internal/modules/helpers:176:18)
at requirePage (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\node_modules\.pnpm\next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru\node_modules\next\dist\server\require.js:109:84) {
page: '/api/auth/_log'
}
TypeError: fetch failed
at node:internal/deps/undici/undici:12442:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async postJSON (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\node_modules__pnpm_ef204c._.js:8907:22)
at async Connection.execute (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\node_modules__pnpm_ef204c._.js:8860:23)
at async Connection.transaction (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\node_modules__pnpm_ef204c._.js:8847:13)
at async getProductsAction (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\src_server_d3c8db._.js:752:34)
at async ProductsPage (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\src_e18c5e._.js:661:33) {
cause: Error: getaddrinfo ENOTFOUND undefined
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'undefined'
}
}
⨯ TypeError: fetch failed
at getProductsAction (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\src_server_d3c8db._.js:770:19)
at async ProductsPage (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\src_e18c5e._.js:661:33)
digest: "3091884050"
⨯ TypeError: fetch failed
at getProductsAction (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\src_server_d3c8db._.js:770:19)
at async ProductsPage (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\ssr\src_e18c5e._.js:661:33)
digest: "3091884050"
GET /products 200 in 6217ms
POST /api/auth/_log 500 in 5189ms
⨯ createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component
at createContextAndHook (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:695:451)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:725:55
at [project]/node_modules/.pnpm/@clerk+shared@2.0.0_react-dom@19.0.0-canary-33a32441e9-20240418_react@19.0.0-canary-33a32441e9-20240418/node_modules/@clerk/shared/dist/react/index.mjs [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:1330:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\a82fd_@clerk_clerk-react_dist_a8e2ab._.js:50:351
at [project]/node_modules/.pnpm/@clerk+clerk-react@5.0.0_eslint-ts-patch@8.57.0-0_react-dom@19.0.0-canary-33a32441e9-20240418_ew6bd72ryzfejon4mjo6vx5you/node_modules/@clerk/clerk-react/dist/chunk-H36HJF5O.mjs [app-route] (ecmascript) <locals> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\a82fd_@clerk_clerk-react_dist_a8e2ab._.js:474:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\3bd4e_@clerk_nextjs_dist_esm_5d047f._.js:1419:398
at [project]/node_modules/.pnpm/@clerk+nextjs@5.0.1_eslint-ts-patch@8.57.0-0_next@14.3.0-canary.14_react-dom@19.0.0-canary-33_dq2lsrqadznom5n2qifaaiiqpe/node_modules/@clerk/nextjs/dist/esm/index.js [app-route] (ecmascript) <exports> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\3bd4e_@clerk_nextjs_dist_esm_5d047f._.js:1426:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:174:394
at [project]/src/utils/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:386:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1260:127
at [project]/src/data/db/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1349:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1368:132
at [project]/src/core/auth/authjs/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1449:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1458:144
at [project]/src/app/api/auth/[...nextauth]/route.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1465:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\11cf5_next_f08009._.js:8527:162
at [project]/node_modules/.pnpm/next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru/node_modules/next/dist/esm/build/templates/app-route.js { INNER_APP_ROUTE => "[project]/src/app/api/auth/[...nextauth]/route.ts [app-route] (ecmascript)" } [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\11cf5_next_f08009._.js:8562:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at instantiateRuntimeModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:580:12)
at Object.getOrInstantiateRuntimeModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:595:12)
at Object.<anonymous> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\app\api\auth\[...nextauth]\route.js:20:26)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at mod.require (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\node_modules\.pnpm\next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru\node_modules\next\dist\server\require-hook.js:65:28)
at require (node:internal/modules/helpers:176:18)
at requirePage (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\node_modules\.pnpm\next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru\node_modules\next\dist\server\require.js:109:84) {
page: '/api/auth/session'
}
GET /api/auth/session 500 in 3979ms
⨯ createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component
at createContextAndHook (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:695:451)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:725:55
at [project]/node_modules/.pnpm/@clerk+shared@2.0.0_react-dom@19.0.0-canary-33a32441e9-20240418_react@19.0.0-canary-33a32441e9-20240418/node_modules/@clerk/shared/dist/react/index.mjs [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\bffe3_@clerk_shared_dist_e7bb15._.js:1330:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\a82fd_@clerk_clerk-react_dist_a8e2ab._.js:50:351
at [project]/node_modules/.pnpm/@clerk+clerk-react@5.0.0_eslint-ts-patch@8.57.0-0_react-dom@19.0.0-canary-33a32441e9-20240418_ew6bd72ryzfejon4mjo6vx5you/node_modules/@clerk/clerk-react/dist/chunk-H36HJF5O.mjs [app-route] (ecmascript) <locals> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\a82fd_@clerk_clerk-react_dist_a8e2ab._.js:474:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\3bd4e_@clerk_nextjs_dist_esm_5d047f._.js:1419:398
at [project]/node_modules/.pnpm/@clerk+nextjs@5.0.1_eslint-ts-patch@8.57.0-0_next@14.3.0-canary.14_react-dom@19.0.0-canary-33_dq2lsrqadznom5n2qifaaiiqpe/node_modules/@clerk/nextjs/dist/esm/index.js [app-route] (ecmascript) <exports> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\3bd4e_@clerk_nextjs_dist_esm_5d047f._.js:1426:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:174:394
at [project]/src/utils/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:386:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1260:127
at [project]/src/data/db/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1349:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1368:132
at [project]/src/core/auth/authjs/index.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1449:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1458:144
at [project]/src/app/api/auth/[...nextauth]/route.ts [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\src_3c062f._.js:1465:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at getOrInstantiateModuleFromParent (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:572:12)
at esmImport (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:122:20)
at C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\11cf5_next_f08009._.js:8527:162
at [project]/node_modules/.pnpm/next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru/node_modules/next/dist/esm/build/templates/app-route.js { INNER_APP_ROUTE => "[project]/src/app/api/auth/[...nextauth]/route.ts [app-route] (ecmascript)" } [app-route] (ecmascript) (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\11cf5_next_f08009._.js:8562:3)
at instantiateModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:520:23)
at instantiateRuntimeModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:580:12)
at Object.getOrInstantiateRuntimeModule (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\chunks\[turbopack]_runtime.js:595:12)
at Object.<anonymous> (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\.next\server\app\api\auth\[...nextauth]\route.js:20:26)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at mod.require (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\node_modules\.pnpm\next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru\node_modules\next\dist\server\require-hook.js:65:28)
at require (node:internal/modules/helpers:176:18)
at requirePage (C:\Users\FPCC\Desktop\WEB DEV\relivator-nextjs-template\node_modules\.pnpm\next@14.3.0-canary.14_@babel+core@7.24.4_@playwright+test@1.43.1_react-dom@19.0.0-canary-33a3_p55e5tv2ikfmwnn42n3teaqpru\node_modules\next\dist\server\require.js:109:84) {
page: '/api/auth/_log'
}
POST /api/auth/_log 500 in 644ms
please check it on your convenience
Hello, @Yazan-Ali-01 and @vikas0380! Thank you so much for creating, collaborating, and discussing this issue! I believe, I have fixed this fetch failed
issue (although I can't test the planetscale option as it is now only paid). In the next few days, I will make a deploy of the v1.2.6 of Relivator. So the project will work again and much better than ever before. Thanks for being a part of the Relivator's community!
hey again! It's heppening with me rn (20/4/2024) I've installed the packages then ran mysql db container with:
docker run -p 3306:3306 --name testing-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest
and I made sure that it's running and working then filled env variables as the following :then trying now to to do
pnpm mysql:push
but gettingand if i try
pnpm dev
I get the same error (Fetch Failed, Shown in image below)Please help as I was impressed by the project effort and really want to contribute but I'm not able to trace the problem yet hince I'm new on the project and didn't discover anything yet