HPInc / jipp

A Java-compatible implementation of IPP
MIT License
144 stars 41 forks source link

LaserJet Enterprise M407[client-error-bad-request] #165

Closed queal closed 8 months ago

queal commented 8 months ago

I submitted a print job through IPP to the printer. ippRequestPackage like this:

IppPacket(v=0x200, c=Print-Job(2), r=0x1) {
 operation-attributes {
  attributes-charset = utf-8,
  attributes-natural-language = en-us,
  printer-uri = http://192.168.6.43:631/ipp/print,
  requesting-user-name = "tms" (name),
  document-format = image/pwg-raster },
 printer-attributes { media-supported = iso_a4 } 
}

LaserJet Enterprise M407 Resp like this:

IppPacket(v=0x200, c=client-error-bad-request(1024), r=0x1) { 
attributes-charset = "utf-8" (charset),  attributes-natural-language = "en" (naturalLanguage) 
} 

LaserJet MFP M232dw is ok

I sought assistance from HP customer service, but I didn't receive any useful support. I now understand that a certain attribute in IPP is missing. How should I handle this? I have tried everything, so I came here to ask for help.

My English is not very good, and I used ChatGPT for translation. I hope you understand.

tks for everyone

queal commented 8 months ago

@HPNavjot

HPNavjot commented 8 months ago

@queal you can refer to IPP registrations and RFC-8011 these documents provide information on attributes and values for all the operations allowed via IPP protocol.

HPNavjot commented 8 months ago

can you try removing the printer-attributes from the print-job request, as it is not a valid attribute group for print -job request. refer: https://www.rfc-editor.org/rfc/rfc8011.html#section-4.2.1.1

queal commented 8 months ago

removing the printer-attributes is ok!!!! thks!!!!