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

"Failed to fetch version info for @tesseract.js-data/fr." #840

Closed
ChrisJeamme opened this issue Oct 11, 2023 · 2 comments
Closed

"Failed to fetch version info for @tesseract.js-data/fr." #840

ChrisJeamme opened this issue Oct 11, 2023 · 2 comments

Comments

@ChrisJeamme
Copy link

ChrisJeamme commented Oct 11, 2023

Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
5.0.2

Describe the bug
I just launched a recognition after setting it to French, and the GET of "fr.traineddata.gz" returns a 404 error

To Reproduce
Steps to reproduce the behavior:
Request GET https://cdn.jsdelivr.net/npm/@tesseract.js-data/fr/4.0.0_best_int/fr.traineddata.gz
or
Execute code :

const worker = await createWorker('fr');
const { data: { text } } = await worker.recognize('randomdatabecausenomatter');

image

Expected behavior
GET status 200 of this file and continue recognition

Device Version:

  • OS + Version: Windows 11
  • Browser : Chrome 118.0.5993.71

Additional context
Worked very well in version 4.

@Balearica
Copy link
Collaborator

The code for French is fra not fr. Language codes can be found in this file.

@ChrisJeamme
Copy link
Author

Oh yes ! My bad
It might be good to have a little check, I had absolutely no idea that I had entered the value incorrectly
Thank you for the quick reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants