dylan
dylan
TTCTheo's Typesafe Cult
Created by dylan on 5/15/2024 in #questions
My callback is failing for larger files
Hi! I'm working with PDFs and I'm doing some stress testing with bigger files. Behind the scenes I'm embedded and indexing the pdfs in an Upstash db, and originally that was the culprit due to the exceeded limit of the metadata text size, though that was quickly resolved. Now lies some issue with failing to simulate callback Smaller files work fine through my whole pipeline. But even a small file (in size, 1.2mb) which does have a lot of content doesn't work. I do see a jump in the time it takes to POST to the router with these larger files: POST /api/uploadthing?slug=pdfUploader 500 in 15292ms Compared to a smaller (which is actually bigger, 3.1mb, maybe less dense?) file: POST /api/uploadthing?slug=pdfUploader 200 in 3127ms Is there a timeout limit? Though through it all, everything DOES upload fine, Uploadthing, Upstash, etc. It is just the callback failing. So yeah, I'd love any help/tips, maybe better debugging methods? Thanks!!
1 replies