Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] PDF Import #745

Open
1 task
BimwerxNZ opened this issue Jan 29, 2025 · 4 comments
Open
1 task

[BUG] PDF Import #745

BimwerxNZ opened this issue Jan 29, 2025 · 4 comments
Labels
type: bug Something isn't working

Comments

@BimwerxNZ
Copy link

Environment

big-agi.com (production website)

Description

Following error on PDF import: Unable to attach the file "241125 - TRN 0490 - MAT{3}DRU24S-06067 (ID 227894).pdf" (The API version "4.10.38" does not match the Worker version "4.8.69".)

Device and browser

Windows 11, Google Chrome

Screenshots and more

No response

Willingness to Contribute

  • 🙋‍♂️ Yes, I would like to contribute a fix.
@BimwerxNZ BimwerxNZ added the type: bug Something isn't working label Jan 29, 2025
@enricoros
Copy link
Owner

This is unusual. Have you tried to reload the website/reboot the machine?
This error shows that the PDF 'web worker' (which comes with Big-AGI) is an older version of the one in the Big-AGI PDF upload button -- some desync of sort.
In any case, please export chats to backup before anything, just to be sure that the browser doesn't act up.

@Essaid08
Copy link

Essaid08 commented Feb 3, 2025

The API version "4.8.69" does not match the Worker version "4.10.38"

same problem

@Essaid08
Copy link

Essaid08 commented Feb 3, 2025

the solution is simple you just have to sync you pdf-dist from react-pdf to the the current pdf-dist dependency :

Uninstall the current version of pdfjs-dist:
npm uninstall pdfjs-dist
Install the compatible version:
npm install [email protected] or the desired version
Verify the installation:
npm list pdfjs-dist react-pdf
You should see:

[email protected]
├── [email protected]
└── [email protected]
-----pdfjs-dist@(should be the same here)

so the general idea is to have the same versions of pdf-dist when you run the command
npm list pdfjs-dist react-pdf

@enricoros
Copy link
Owner

Oh yes, very important: after git pull there needs to be a npm i to make sure that the dependencies are at the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants