AymaneCh
AymaneCh12mo ago

❌ Failed to collect page data for api trpc [trpc] ❌

I'm getting this error when I deploy to Vercel Framework: NEXTJS Anyone resolved this issue 🤔, HELP PLEASE!!
No description
6 Replies
Jonathan
Jonathan11mo ago
Did you find a solution to this?
SebasPtsch
SebasPtsch11mo ago
Is your file name correct? And are there any more logs?
Jonathan
Jonathan11mo ago
I am having this same issue in a github ci/cd not going to vercel, I am still digging into it and don't feel comfortable sharing my entire log on that
SebasPtsch
SebasPtsch11mo ago
There should be another error further up in the logs. This one doesn't really tell anyone anything
seiffzz
seiffzz3mo ago
Hi, did you manage to solve this issue?
__doei__
__doei__3mo ago
same problem here seemingly because of my db url which next js has no business accessing during the build: ``` #17 73.30 TypeError [ERR_INVALID_URL]: Invalid URL #17 73.30 at new NodeError (node:internal/errors:405:5) #17 73.30 at new URL (node:internal/url:676:13) #17 73.30 at /app/.next/server/chunks/313.js:38:992 #17 73.30 at /app/.next/server/chunks/313.js:38:1247 #17 73.30 at ev (/app/.next/server/chunks/313.js:38:3562) #17 73.30 at 30186 (/app/.next/server/chunks/126.js:1:729) #17 73.30 at t (/app/.next/server/webpack-runtime.js:1:128) #17 73.30 at 31765 (/app/.next/server/app/api/trpc/[trpc]/route.js:8:13491) #17 73.30 at t (/app/.next/server/webpack-runtime.js:1:128) #17 73.30 at r (/app/.next/server/app/api/trpc/[trpc]/route.js:9:39130) { #17 73.30 input: 'postgresql://:@db:5432/***', #17 73.30 code: 'ERR_INVALID_URL' #17 73.30 }