Hello,
I'm working on a google chrome extension to send print jobs using IPP.
I'm able to send printjobs to other printers, but I'm not able to send them to the XEROX VERSALINK C405.
I'm getting the following error when trying to retrieve it's attributes:
Received unexpected response status 406 from the printer
However, I'm able to retrieve the printer attributes with the following NodeJS script:
ipp = require('ipp'); var printer = ipp.Printer("ipp://myprinterip:631/",{"version":"2.0"}); var msg = { "operation-attributes-tag": { "attributes-charset": "utf-8", "attributes-natural-language": "en", } }; printer.execute("Get-Printer-Attributes", msg, function(err, res){ if (err) return console.log(err); console.log(res); });
But when I run this very same code from a chrome extension, I'm getting the 406 response... (I'm using browserify to be able to use the node ipp libraries)
I wonder if I'm doing something wrong...
If I launch a virtual printer with ipp-printer command, I'm able to retrieve the attributes of the virtual printer from the chrome extension...