joschan21 / quill

Quill - A Modern SaaS-Platform Built With Next.js 13
1.86k stars 490 forks source link

Call unsuccessful after 8 tries. Retrying in 64 seconds #71

Open alpacaPwaa opened 6 months ago

alpacaPwaa commented 6 months ago

Anyone here who had the same error? I am stuck in "Call unsuccessful after 8 tries. Retrying in 64 seconds" every time I try uploading large file in my vercel app, It's odd because my terminal says "Successfully simulated callback for file 3639eb94-c86a-4744-b31b-3787c630aeff-vlvftv.pdf" and I can see the file being added in the dashboard, and every time I try to open the file it won't let me ask questions. The error only appear in my vercel app and everything works fine in my local host. Screenshot (43)

Omsoni06 commented 6 months ago

facing same issue

bbfodor commented 5 months ago

Same here, managed to find a fix yet?

gptsparky commented 5 months ago

I had the same issue, file uploading didn't work when deployed. It was stuck at the upload box loading. Looking at the logs, the api/trpc/getFile endpoint was being polled every few seconds and never stopped (also error 404).

Afterward, I noticed the file was successfully uploaded to UploadThing but it was NOT added to the database (thus the infinite polling), so the issue was the code to add the file to the database wasn't running (the code in the callback onUploadComplete in src/app/api/uploadthing/core.ts).

Turns out Vercel was the issue, it allowed a maximum of a few seconds of computing at a time so the uploaded file was never added to the database as the code to do it timed out. Thus, the infinite polling.

TLDR; the solution is to deploy elsewhere like Netlify or upgrade from the Hobby plan on Vercel.