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

StatusCodeError: 301 when predicting image file #3

Open
chainedcoder opened this issue Mar 25, 2022 · 3 comments
Open

StatusCodeError: 301 when predicting image file #3

chainedcoder opened this issue Mar 25, 2022 · 3 comments

Comments

@chainedcoder
Copy link
Contributor

The error StatusCodeError: 301 is raised when predicting image.

Here's is how to replicate the error:

const nanonets = require('nanonets')(
                          key
                        )
nanonets.predict({
                          modelType: 'OCR',
                          filePath: filePath,
                          modelId: model_id
                        })

This raises the above error.

The error can be fixed by setting the url to use https instead of https in this package

@fernandesGabriel
Copy link

fernandesGabriel commented Apr 12, 2022

I am getting the same error, even though it has a commit created for it on #4. I am using version 1.0.13

@chainedcoder
Copy link
Contributor Author

@fernandesGabriel You're getting the error because you are installing the version which is on npm. I'm afraid that version doesn't include this commit.

I installed directly from github instead --> npm install github:chainedcoder/nanonets-javascript if using npm

@fernandesGabriel
Copy link

Ah ok, @chainedcoder. However, as I had some issues while using Typescript, I just created my own client based on the documentation on Nanonets page. It would be nice if we could get the fixed version on NPM already.

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