naveedehmadN
Convex Communityโ€ข7mo agoโ€ข
13 replies
naveedehmad

Running into Your request couldn't be completed. Try again later when loading a ~10mb PDF

I'm storing PDFs to r2 but then have to load in convex for further processing via Gemini. I have to first get the bytes from the r2 url, load it to PDFDocument via pdf-lib to do some pre-analysis and then pass it to gemini. Now, i could circumvent this by creating a cloudflare worker that does all of this processing upon upload, but before i take that route that would need a lot of refactoring, is there a workaround? am i doing something wrong? fwiw, i'm using node runtime already to make sure i have enough ram. also i'm on Free plan in case, my requests are being throttled. would appreciate help ๐Ÿ™
Was this page helpful?