TypeError: fetch failed when building the app in Next 13.4 #507
Replies: 1 comment
-
Hello @vitormarkis, You're likely right that there is some issue/difference on your local machine vs. the production environment. Based on what was shared I'm not quite sure what that would be unfortunately. A few thoughts I wonder about though is whether your production setup is still using I also wonder if you are making use of our serverless driver in any way in your code, but if you are using Prisma that doesn't seem likely as support for our serverless driver isn't available there at this time as far as I'm aware. But if you were using the serverless driver I think it may not work together with the The only thing I can think of aside from those things would be an issue with the undici side in some way, but I don't have enough information to know that for sure. |
Beta Was this translation helpful? Give feedback.
-
I'm using Planetscale database proxy to runs the database
pscale connect <db-name> <branch> --port 3309
It's working on dev mode, also
npx prisma studio
connects sucessfully, but when i try to build the app, in the pages where i fetch data using next async components, it throws this error for multiple pages:Example where I fetch data in async component
The error on building logs
I assume its a error related to my PC, because the current commit on production works, but building locally it throws this error.
Beta Was this translation helpful? Give feedback.
All reactions