Undici error (Drizzle + Next.js 13.5)
I'm getting an odd error with Undici; after looking things up, I've not had any luck. Here is the error I'm getting:
The only place in which I use Undici is here:
Even after removing this, I get the same error. Does anyone have any idea what this could be associated with?
Also, the odd thing is… I’m not running this at all. It happens when I try to insert a new record into the database. For reference, I am using Drizzle inside of my server actions.
3 Replies
Without reading into any documentation, I don’t think you need the fetch variable when connecting? If you do, try using the native fetch and see if it works to break down what the issue might be
That's what I thought, even after removing this, and mention of undici in my repository, the error still occurs.
https://github.com/vercel/next.js/issues/54961 - Appears to be a known issue.
GitHub
next js 13 server error " TypeError: fetch failed " · Issue #54961 ...
Link to the code that reproduces this issue or a replay of the bug https://github.com/AhmedShehata98/shoperz To Reproduce Start the application with npm run dev After many re-render or refresh Faci...