Comments (3)
Looks like tag 18 is unknown
... and the spec is certainly unclear on THAT one. I added a handleUnknownTag
function to allow customization of reading unknown tag values ... or to just silence the default log message. It also returns a bit more info in the message now.
I don't have access to a printer ATM to test this code- so, I didn't test it yet :/ My printers do not produce a tag 18- so it won't hit this code anyhow.
If you have a chance, can you test this out and comment back the new output?
If you want to just silence the output:
var ipp = require('ipp');
ipp.parse.handleUnknownTag = function(tag, name, length, read) {
return length? read(length) : undefined;
};
from ipp.
For what it's worth, I get similar messages but about tag 19:
The spec is not clear on how to handle tag 19: printer-dns-sd-name=undefined. Please open a github issue to help find a solution!
The spec is not clear on how to handle tag 19: orientation-requested-default=undefined. Please open a github issue to help find a solution!
Since I have the said printer at my disposable, I'm of course ready to help you debug this.
from ipp.
Greetings,
Assuming you are referring to the value tag 0x13 "no-value" (decimal value 19), the meaning is quite clearly articulated in RFC 2911 "IPP/1.1: Model and Semantics" section 4.1 https://tools.ietf.org/html/rfc2911#section-4.1 or in section 5.1.1 in the most recent draft updates https://tools.ietf.org/html/draft-sweet-rfc2911bis-11#section-5.1.1:
βno-valueβ: The attribute is supported by the Printer object, but
the administrator has not yet configured a value.
This is a legitimate value for the Printer to return if these conditions are met, even if the definition of the attribute itself doesn't list it as a possible value.
As a point of feedback, it would be best if this project and software using it used the more appropriate 'no-value' label rather than referring to it as 'undefined', which is not an identifier registered anywhere in the IANA IPP registry, and certainly not in the registry for out-of-band values (http://www.iana.org/assignments/ipp-registrations/ipp-registrations.xml#ipp-registrations-8 http://www.iana.org/assignments/ipp-registrations/ipp-registrations.xml#ipp-registrations-8).
Cheers,
Smith
/**
Smith Kennedy
Wireless Architect - Client Software - IPG-PPS
Standards - IEEE ISTO PWG / Bluetooth SIG / Wi-Fi Alliance / NFC Forum / USB IF
Chair, IEEE ISTO Printer Working Group
HP Inc.
*/
On 2016-08-31, at 9:20 AM, Robin Hahling [email protected] wrote:
For what it's worth, I get similar messages but about tag 19:
The spec is not clear on how to handle tag 19: printer-dns-sd-name=undefined. Please open a github issue to help find a solution!
The spec is not clear on how to handle tag 19: orientation-requested-default=undefined. Please open a github issue to help find a solution!
Since I have the said printer at my disposable, I'm of course ready to help you debug this.β
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #26 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AIT6tpRf8Kp1Hh3byktzUu9fyePgIHyfks5qlZvLgaJpZM4HkjJS.
from ipp.
Related Issues (20)
- PDF output has wrong font HOT 5
- Print-Scaling Unknown Attribute HOT 6
- Resolution Syntax HOT 1
- "Wrong Roll Type" on every possible media/print-scaling configuration HOT 3
- Copyright problem when scanning with Blackduck
- separator-sheets-type option isn't handled correctly
- characters that have a code upper than 127 are not printed correctly HOT 1
- Set-Printer-Attribute
- node version and dependecies update HOT 2
- client-error-document-format-not-supported HOT 1
- charset option
- printer does not produce output on first trigger
- paper cutting HOT 1
- Bad IPP Response crashes Node.JS Process
- My print only supports application/octet-stream - how can I print an image / pdf ? HOT 13
- printer-strings-uri=undefined
- unsupported-attributes-tag
- The spec is not clear on how to handle tag HOT 1
- Can't set tray-2 HOT 1
- Cannot install the package ipp on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipp.