It works locally but doesn't save to the database when deployed on Vercel.

It's working fine on my local machine, but after deploying to Vercel, it's not saving data to the database.
Vincent Udén
Vincent Udén33d ago
You really should be getting an error somewhere if your intended data doesnt make it to your database. Have you checked your vercel logs?
Akash Sharma
Akash Sharma33d ago
Yes, I have check vercel logs and I didn't see any error in the logs. also api/uploading status 200 and even when I trying to debug the onUploadComplete function with console.log , i didn't see any log in vercel don't know why it's happening
Vincent Udén
Vincent Udén33d ago
Could your serverless functions be timing out? If youre on vercel free itjink theyre capped at 10seconds runtime
Akash Sharma
Akash Sharma28d ago
yeah , I'm using vercel free but previously it's working fine and i didn't get any timeout and still now i haven't get any timeout error Any Idea ?
Vincent Udén
Vincent Udén28d ago
Nope. Without an error message of any kind I have nothing to offer except checking the obvious stuff like making sure env variables are correct
Akash Sharma
Akash Sharma28d ago
Yes Env are correct And also in locally it work fine but not in the deployed one
Vincent Udén
Vincent Udén28d ago
I am capable of reading. You already said that. Try to add some logging at as many points as you can. See where execution stops
Akash Sharma
Akash Sharma28d ago
Only problem is that it doesn't save in the database file is also upload to the uploadthing no issue on that i have added the logging but i'm unable to see the logs in the vercel
Vincent Udén
Vincent Udén28d ago
Then you are doing something wrong on your vercel dashboard or its not running at all
Akash Sharma
Akash Sharma28d ago
I have upgrade uploadthing to latest and now i got error in the local DANGEROUSuploadFiles Attempted import error: 'DANGEROUSuploadFiles' is not exported from 'uploadthing/client' (imported as 'DANGEROUS__uploadFiles'). Import trace for requested module: ./node_modules/@uploadthing/react/dist/chunk-36V7DNOE.mjs ./node_modules/@uploadthing/react/dist/hooks.mjs ./src/lib/uploadthing.ts @Vincent any idea how to fix this issue
Vincent Udén
Vincent Udén28d ago
Nope. I dont use uploadThing
Want results from more Discord servers?
Add your server
More Posts
Error on NextJs AppRouterAnyone knows why this is showing on my console?useFormState in tables, or complex formsI decided to play with the new server components and useFormState. I am building myself the table shHow are signals going to be any different that state variables in React?I was just watching Theo's videos on signals coming to javascript (https://www.youtube.com/watch?v=JNext redirect() gives date.getTime() errorI use lucia auth with nextjs. And all things are okay until i add `redirect('/blog/login')` fuction Prisma/tRPC query failing 1/2 the time, but only in ProdSo I have an app, in my local dev environment, everything is working as expected in regards to the DTailwind CSS dynamically add classesAre there docs or some guidelines on how the tailwind unused css class purging works exactly and howNo typesaftey for dynamic returns``` // BE publicProcedure.input(z.object({shouldPopulateRelation: z.boolean()})).query(({ input, ctxHow do you cache tRPC server responses w/Next App Router?**What is the correct way to define the cache for tRPC endpoints with `create-t3-app@7.30.1` & Next I want to get information from the indexedDB and include this in the first render, without delayThe issue is that react code needs to be hydrated before being executed, so you can't get info from getting error while fetching from uploadthingi am creating a next.js project where user can upload pdf file which we save using upload thing and Next Auth google says redirect URI is broken but works on another projectHi! I am working on a project and I keep getting the error: Access blocked: This app’s request is Next not doing SSG routes?? Am I missing something?Hi, I need to do this page ssg instead of dynamic server rendered, i dont have any dependencies so iHow to fix jupyterhub issueAnyone have any experience with jupyterhub? I'm getting: TimeoutError: pod jupyterhub/jupyter-zfjryP3005 Error running Prisma migrateI am working on a NextJS project that uses prisma. I was able to define my initial schemas and deploUTApi - server SDK uploadFilesFromUrl module errorI am getting a weird bug when uploading images using the utapi uploadFilesFromUrl. This is my serverVercel Date Issueunderstand that Vercel servers have different dates compared to the client's date. Typically, this iRequest -Website to analyze npm packagesTheo made a video on it but I forget the website name and cant find the video. The tool analyzes andDate being overridden in neon and drizzle ormHey! when I'm trying to store a date in drizzle orm and neon the date that's being written is overwrWhat is a correct API route validation flowI'm currently creating a learning platform similar to udemy just for some practice using Next.js (paAPI Monitoring, Logging from ScratchHello folks I have an assignment where I want to develop a rest monitoring tool where that tracks th