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

JavaScript sample error : ECONNREFUSED 127.0.0.1:443 #77

Open
SUDO-SU-96 opened this issue Jul 18, 2019 · 2 comments
Open

JavaScript sample error : ECONNREFUSED 127.0.0.1:443 #77

SUDO-SU-96 opened this issue Jul 18, 2019 · 2 comments

Comments

@SUDO-SU-96
Copy link

I want to run the JS sample with node and every time I execute "node test.js" it says:

"DeprecationWarning: sys is deprecated. Use util instead.
Error: connect ECONNREFUSED 127.0.0.1:443"

Im sure that I entered the correct AppID and the correct password.
As url I am using http://cloud-eu.ocrsdk.com/.

Thanks for your help.

@BaggersIO
Copy link

@SUDO-SU-96

I ran into the same issue. After a bit of debugging I found a quick fix.

DeprecationWarning: sys is deprecated. Use util instead.

Replace var sys = require("sys"); with var sys = require("util"); in ocrsdk.js

👉https://github.com/abbyysdk/ocrsdk.com/blob/master/JavaScript/ocrsdk.js#L8

Error: connect ECONNREFUSED 127.0.0.1:443

Well, it seems ABBYY doesn't care much about this repo. The script is totally broken. The third property serviceUrl is missing in the create function in ocrsdk.js.

Here's the fix:

exports.create = function(applicationId, password, serviceUrl) {
	return new ocrsdk(applicationId, password, serviceUrl);
}

👉https://github.com/abbyysdk/ocrsdk.com/blob/master/JavaScript/ocrsdk.js#L19

Since there are still open PRs opened in 2015, I decided to not patch this bugs :)

@pravosleva
Copy link

Fixed. But I cant push my local branch =(

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

3 participants