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

Got Error "server-error-version-not-supported" #23

Closed
AlexZhouAA opened this issue Oct 14, 2015 · 3 comments
Closed

Got Error "server-error-version-not-supported" #23

AlexZhouAA opened this issue Oct 14, 2015 · 3 comments

Comments

@AlexZhouAA
Copy link

Try run the following code,


var ipp = require('ipp');

var uri = "http://192.168.0.123:631/lp1";
var data = ipp.serialize({
    "operation":"Get-Printer-Attributes",
    "operation-attributes-tag": {
        "attributes-charset": "utf-8",
        "attributes-natural-language": "en",
        "printer-uri": uri
    }
});

ipp.request(uri, data, function(err, res){
    if(err){
        return console.log(err);
    }
    console.log(JSON.stringify(res,null,2));
})

Got the following error,


{
  "version": "1.0",
  "statusCode": "server-error-version-not-supported",
  "id": 0,
  "operation-attributes-tag": {
    "attributes-charset": "utf-8",
    "attributes-natural-language": "en-us"
  }
}

Please help.
Thanks a lot.

@AlexZhouAA
Copy link
Author

I read issue #15, fixed

@williamkapke
Copy link
Owner

Ah cool. Sorry couldn't respond- I've been at a conference the last few days. Glad you worked it out.

Cheers.

@AlexZhouAA
Copy link
Author

Thanks a lot, however I got another problem,
Submitted as issue #24

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