Git Product home page Git Product logo

Comments (8)

saiksaif avatar saiksaif commented on July 2, 2024 1

Do you mean this line:

const response = await fetch(https://uploadthing-prod.s3.us-west-2.amazonaws.com/${file.key})

I am using the project as it is and this line is what's similar the one you mention in the project.

from quill.

JayGadhethariya456 avatar JayGadhethariya456 commented on July 2, 2024 1

That's why it's not working try using my line the code is old and uploaded longtime ago

from quill.

JayGadhethariya456 avatar JayGadhethariya456 commented on July 2, 2024

in uploadthing folder>core.ts have u used const response = await fetch(https://utfs.io/f/${file.key}) this?

from quill.

saiksaif avatar saiksaif commented on July 2, 2024

I tried but that didn't change anything, still same error.

from quill.

gptsparky avatar gptsparky commented on July 2, 2024

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.

from quill.

danishzayan avatar danishzayan commented on July 2, 2024

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.

I have faced same issue and not fixing 😔

from quill.

danishzayan avatar danishzayan commented on July 2, 2024

And when uploading 3 page of pdf still show error that so many page in pdf

from quill.

Zem-0 avatar Zem-0 commented on July 2, 2024

did anyone fix it please iam not able to create chat after uploading the pdf it always shows file is too large

from quill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.