Develop Threads, Next.js 13 app that skyrocketed to 100 million sign-ups in less than 5 days, and dethroned giants like Twitter, ChatGPT, and TikTok to become the fastest-growing app ever!
import { createNextRouteHandler } from "uploadthing/next";
import { ourFileRouter } from "./core";
// Export routes for Next App Router
export const { GET, POST } = createNextRouteHandler({
router: ourFileRouter,
});
I have correctly pasted in my credentials in the .env file.
Here is the full error
[UT] UploadThing dev server is now running!
⨯ TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11600:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (/home/sajawal/Documents/web_development/discord_clone_nextjs/node_modules/next/dist/compiled/undici/index.js:1:92227)
at /home/sajawal/Documents/web_development/discord_clone_nextjs/node_modules/next/dist/compiled/undici/index.js:1:91719
at Immediate._onImmediate (/home/sajawal/Documents/web_development/discord_clone_nextjs/node_modules/next/dist/compiled/undici/index.js:1:92109)
at process.processImmediate (node:internal/timers:478:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}
This error is printed out in the console of my NextJS app. Here is the error in the browser:
I am trying to set up upload thing however I am getting timeout errors.
app/api/uploadthing/core.ts
app/api/uploadthing/route.ts
I have correctly pasted in my credentials in the .env file. Here is the full error
This error is printed out in the console of my NextJS app. Here is the error in the browser:
Kindly let me know if more details are needed