Open SUDO-SU-96 opened 5 years ago
@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 :)
Fixed. But I cant push my local branch =(
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.