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

Network error while fetching #858

Closed
daniellwdb opened this issue Nov 27, 2023 · 2 comments
Closed

Network error while fetching #858

daniellwdb opened this issue Nov 27, 2023 · 2 comments

Comments

@daniellwdb
Copy link

daniellwdb commented Nov 27, 2023

Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
"tesseract.js": "^5.0.3"

Describe the bug
Call to createWorker results in:

Error: Error: Network error while fetching https://cdn.jsdelivr.net/npm/@tesseract.js-data/en/4.0.0/en.traineddata.gz. Response code: 404

To Reproduce
Steps to reproduce the behavior:
npm i tesseract.js@latest

import { createWorker } from "tesseract.js";

createWorker("en", 4)

Expected behavior
Language data should be downloaded.

Device Version:

  • Windows 11
  • Node v18.16.0

Additional context
Manually adding the eng.traineddata file to my project root (like how it was downloaded in the past) does not work either

@Balearica
Copy link
Collaborator

en is not a valid language code. Presumably you mean eng for English. A full list of language codes can be found here.

@daniellwdb
Copy link
Author

Thanks!

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