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

Error occurred: LensError: Lens returned a non-200 status code #26

Closed
parvinders347 opened this issue Jan 4, 2025 · 3 comments
Closed

Comments

@parvinders347
Copy link

parvinders347 commented Jan 4, 2025

Hey it showing me this error:

Error occurred:
LensError: Lens returned a non-200 status code
at Lens.fetch (file:///C:/Users/singh/AppData/Roaming/npm/node_modules/chrome-lens-ocr/src/core.js:184:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async cli (file:///C:/Users/singh/AppData/Roaming/npm/node_modules/chrome-lens-ocr/cli.js:67:16)
at async file:///C:/Users/singh/AppData/Roaming/npm/node_modules/chrome-lens-ocr/cli.js:92:9 {
code: 303,
headers: HeadersList {
cookies: null,
[Symbol(headers map)]: Map(19) {
'content-type' => [Object],
'x-frame-options' => [Object],
'access-control-allow-origin' => [Object],
'access-control-allow-credentials' => [Object],
'cache-control' => [Object],
'pragma' => [Object],
'expires' => [Object],
'date' => [Object],
'location' => [Object],
'content-security-policy' => [Object],
'content-security-policy-report-only' => [Object],
'accept-ch' => [Object],
'cross-origin-opener-policy' => [Object],
'permissions-policy' => [Object],
'server' => [Object],
'content-length' => [Object],
'x-xss-protection' => [Object],
'x-content-type-options' => [Object],
'alt-svc' => [Object]
},
[Symbol(headers map sorted)]: null
},
body: ''
}

@dimdenGD
Copy link
Owner

dimdenGD commented Jan 4, 2025

Fixed in 4.0.4

@dimdenGD dimdenGD closed this as completed Jan 4, 2025
@parvinders347
Copy link
Author

Thanks, but can you tell whats the issue? i thought its the invalid cookies issue so i changed it with my cookies still the issue is coming. can you tell if you dont mind

@parvinders347
Copy link
Author

For me the fix is this: npm install -g chrome-lens-ocr
Before im doing this without global: npm install chrome-lens-ocr
Why is that?

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