manuc66 / node-hp-scan-to

Allow to send scan from device to computer for some HP All-in-One Printers - Scan to computer
https://manuc66.github.io/node-hp-scan-to/
MIT License
163 stars 25 forks source link

Support device with no Platen: `TypeError: Cannot read properties of undefined at get platenMaxWidth` #998

Closed gy-mate closed 3 weeks ago

gy-mate commented 1 month ago

Describe the bug Device: HP DeskJet Ink Advantage 3775 All-in-One Command line or Docker: command line

Describe what is happening

  1. I run the following command:
    npx node-hp-scan-to -ip 192.168.▉.▉▉▉ -D
  2. I get the following error:
    TypeError: Cannot read properties of undefined (reading '0')
        at get platenMaxWidth (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/ScanCaps.js:16:63)
        at readDeviceCapabilities (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/readDeviceCapabilities.js:39:87)
        at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
        at async listenCmd (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:27:32)
        at async Command.<anonymous> (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:214:9)
        at async Command.parseAsync (/opt/homebrew/lib/node_modules/node-hp-scan-to/node_modules/commander/lib/command.js:1092:5)
        at async main (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:254:5)
    Debug output (redacted some info) WARNING: No configurations found in configuration directory:/Users/▉▉▉/config WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment. Using device ip: 192.168.▉.▉▉▉ IsDebug: true Target folder: /var/folders/tl/vs5tbg8d5gsdg4b8rg0ywdt80000gn/T/scan-to-pcBz5rNu Temp folder: /var/folders/tl/vs5tbg8d5gsdg4b8rg0ywdt80000gn/T/scan-to-pcFQWPXc 0001 -> {"baseURL":"http://192.168.▉.▉▉▉","url":"/DevMgmt/DiscoveryTree.xml","method":"GET","responseType":"text"} 0001 <- {"status":200,"data":" \n \n\n\t\n\t\tSVN-IPG-LEDM.441\n\t\t2011-06-15\n\t\n\t\n\t\t/DevMgmt/NetAppsCap.xml\n\t\tledm:hpLedmNetAppsCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/netappcap/2009/06/24\n\t\n\t\n\t\t/DevMgmt/NetAppsDyn.xml\n\t\tledm:hpLedmNetAppsDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/netappdyn/2009/06/24\n\t\n\t\n\t\t/DevMgmt/ProductConfigCap.xml\n\t\tledm:hpLedmProductConfigCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/productconfigcap/2009/03/16\n\t\n\t\n\t\t/DevMgmt/ProductConfigDyn.xml\n\t\tledm:hpLedmProductConfigDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16\n\t\t\n\t\t\tanonymous\n\t\t\n\t\n\t\n\t\t/DevMgmt/ConsumableConfigCap.xml\n\t\tledm:hpLedmConsumableConfigCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/consumableconfigcap/2007/11/19\n\t\n\t\n\t\t/DevMgmt/ConsumableConfigDyn.xml\n\t\tledm:hpLedmConsumableConfigDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/consumableconfigdyn/2007/11/19\n\t\n\t\n\t\t/DevMgmt/MediaHandlingDyn.xml\n\t\tledm:hpLedmMediaHandlingDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/mediahandlingdyn/2007/11/21\n\t\n\t\n\t\t/DevMgmt/MediaHandlingCap.xml\n\t\tledm:hpLedmMediaHandlingCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/mediahandlingcap/2009/06/25\n\t\n\t\n\t\t/DevMgmt/ShopForSupplies.xml\n\t\tledm:hpLedmShopForSupplies\n\t\thttp://www.hp.com/schemas/imaging/ljs/shopforsuppliesrequest/2007/11/07\n\t\n\t\n\t\t/DevMgmt/ProductStatusCap.xml\n\t\tledm:hpLedmProductStatusCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/productstatuscap/2007/10/31\n\t\n\t\n\t\t/DevMgmt/ProductStatusDyn.xml\n\t\tledm:hpLedmProductStatusDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/productstatusdyn/2007/10/31\n\t\n\t\n\t\t/DevMgmt/ProductUsageCap.xml\n\t\tledm:hpLedmProductUsageCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/productusagecap/2007/12/11\n\t\n\t\n\t\t/DevMgmt/ProductUsageDyn.xml\n\t\tledm:hpLedmProductUsageDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/productusagedyn/2007/12/11\n\t\n\t\n\t\t/DevMgmt/PrintConfigCap.xml\n\t\tledm:hpLedmPrintConfigCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/printconfigcap/2009/05/06\n\t\n\t\n\t\t/DevMgmt/PrintConfigDyn.xml\n\t\tledm:hpLedmPrintConfigDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/printconfigdyn/2009/05/06\n\t\n\t\n\t\t/DevMgmt/MediaCap.xml\n\t\tledm:hpLedmMediaCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/mediacap/2009/05/21\n\t\n\t\n\t\t/DevMgmt/MediaDyn.xml\n\t\tledm:hpLedmMediaDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/mediadyn/2009/05/21\n\t\n\t\n\t\t/DevMgmt/SecurityCap.xml\n\t\tledm:hpLedmSecurityCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/securitycap/2008/02/01\n\t\n\t\n\t\t/DevMgmt/SecurityDyn.xml\n\t\tledm:hpLedmSecurityDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/securitydyn/2008/02/01\n\t\n\t\n\t\t/DevMgmt/ProductLogsCap.xml\n\t\tledm:hpLedmProductLogsCap\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/productlogscap/2008/01/16\n\t\n\t\n\t\t/DevMgmt/ProductLogsDyn.xml\n\t\tledm:hpLedmProductLogsDyn\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/productlogsdyn/2008/01/16\n\t\n\t\n\t\t/cdm/servicesDiscovery\n\t\tcdm:servicesDiscovery\n\t\tcom.hp.cdm.domain.glossary.version.1.resource.servicesDiscovery\n\t\t1.3.0\n\t\n\t\n\t\t/Calibration/CalibrationManifest.xml\n\t\tledm:hpCnxCalibrationManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/DevMgmt/NetAppsSecureManifest.xml\n\t\tledm:hpLedmNetAppsSecureManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\t1.0\n\t\n\t\n\t\t/DevMgmt/InternalPrintManifest.xml\n\t\tledm:hpLedmInternalPrintManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/GCP/GCPManifest.xml\n\t\tledm:hpLedmGCPManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/Scan/ScanJobManifest.xml\n\t\tledm:hpLedmScanJobManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/eSCL/eSclManifest.xml\n\t\teSCL:eSclManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/Copy/CopyManifest.xml\n\t\tledm:hpLedmCopyManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/Jobs/JobsManifest.xml\n\t\tledm:hpLedmJobsManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/ePrint/ePrintManifest.xml\n\t\tledm:hpePrintManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/IoMgmt/IoMgmtManifest.xml\n\t\tledm:hpLedmIoMgmt\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/FirmwareUpdate/FirmwareUpdateManifest.xml\n\t\tledm:hpLedmFirmwareUpdateManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/WalkupScanToComp/WalkupScanToCompManifest.xml\n\t\tledm:hpLedmWalkupScanToCompManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/Security/CertificateManifest.xml\n\t\tledm:hpCertificateManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\t1.0\n\t\n\t\n\t\t/EventMgmt/EventMgmtManifest.xml\n\t\tledm:hpLedmEventMgmtManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/ProductActions/ProductActionsManifest.xml\n\t\tledm:hpLedmProductActionsManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/Utilities/UtilitiesManifest.xml\n\t\tledm:hpLedmUtilities\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/CloudAppPlayer/CloudAppPlayerManifest.xml\n\t\tcloud:hpRestCloudAppPlayerManifest\n\t\thttp://www.hp.com/schemas/imaging/con/ledm/manifest/2009/03/24\n\t\n\t\n\t\t/chat\n\t\thpcloud:chat\n\t\turn:hp:cloud:eprint:papi:services:chat:1.3\n\t\n\t\n\t\t/ipp/print\n\t\tpwg:hpIPPPrint\n\t\thttp://www.pwg.org/ipp/2.0\n\t\n\n","headers":{"server":"HP HTTP Server; HP DeskJet 3700 series - T8W42C; Serial Number: ▉▉▉▉▉▉▉▉▉▉▉; Built:Thu Apr 28, 2022 12:41:22PM {LAP1FN2218AR}","content-type":"text/xml","transfer-encoding":"chunked","cache-control":"must-revalidate, max-age=0","pragma":"no-cache"},"statusText":"OK"} 0002 -> {"baseURL":"http://192.168.▉.▉▉▉","url":"/WalkupScanToComp/WalkupScanToCompManifest.xml","method":"GET","responseType":"text"} 0002 <- {"status":200,"data":"\n\n\t\n\t\tSVN-IPG-LEDM.351\n\t\t2011-10-27\n\t\n \n http://www.hp.com/schemas/imaging/con/rest/walkupscan/2010/09/28\n \n\t\n\t\t\n\t\t\t/WalkupScanToComp\n\t\t\tRoot\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t/WalkupScanToCompCaps\n\t\t\t\n\t\t\tWalkupScanToCompCaps\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tGet\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t/WalkupScanToCompDestinations\n\t\t\t\n\t\t\tWalkupScanToCompDestinations\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tGet\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tPost\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t \n \t\t\n \t\t\t/{dd:UUID}\n \t \n \t WalkupScanToCompDestination\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tGet\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n \n\t\t\n\t\t\n\t\t\t\n\t\t\t\t/WalkupScanToCompEvent\n\t\t\t\n\t\t\tWalkupScanToCompEvent\n\t\t\t\n\t\t\t\t\n\t\t\t\t\tGet\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\n\n","headers":{"server":"HP HTTP Server; HP DeskJet 3700 series - T8W42C; Serial Number: ▉▉▉▉▉▉▉; Built:Thu Apr 28, 2022 12:41:22PM {LAP1FN2218AR}","content-type":"text/xml","content-length":"3590","cache-control":"must-revalidate, max-age=0","pragma":"no-cache"},"statusText":"OK"} 0003 -> {"baseURL":"http://192.168.▉.▉▉▉","url":"/WalkupScanToComp/WalkupScanToCompCaps","method":"GET","responseType":"text"} 0003 <- {"status":200,"data":"\r\n\r\n\r\n\t\r\n\t\tSVN-IPG-LEDM.351\r\n\t\r\n\t15\r\n\tfalse\r\n\t\r\n\t\t0\r\n\t\tseconds\r\n\t\r\n\t\r\n\t\tSavePDF\r\n\t\tSaveJPEG\r\n\t\tSaveEditableText\r\n\t\tEmailPDF\r\n\t\tEmailJPEG\r\n\t\tGeneralScan\r\n\t\r\n\r\n","headers":{"server":"HP HTTP Server; HP DeskJet 3700 series - T8W42C; Serial Number: ▉▉▉▉▉▉▉▉; Built:Thu Apr 28, 2022 12:41:22PM {LAP1FN2218AR}","content-type":"text/xml","transfer-encoding":"chunked","cache-control":"must-revalidate, max-age=0","pragma":"no-cache"},"statusText":"OK"} 0004 -> {"baseURL":"http://192.168.▉.▉▉▉","url":"/Scan/ScanJobManifest.xml","method":"GET","responseType":"text"} 0004 <- {"status":200,"data":"\r\n\r\n\t\r\n\t\tSVN.4032\r\n\t\r\n\t\r\n\t\thttp://www.hp.com/schemas/imaging/con/cnx/scan/2008/08/19\r\n\t\r\n\t\r\n\t\t\r\n\t\t\t/Scan\r\n\t\t\tRoot\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t/ScanCaps\r\n\t\t\t\r\n\t\t\tScanCaps\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tGet\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t/Status\r\n\t\t\t\r\n\t\t\tStatus\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tGet\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t/SPF\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tSPFfile\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tGet\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tapplication/vnd.hp-SPF\r\n\t\t\t\tapplication/vnd.hp-SPF-encrypted\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t/Jobs\r\n\t\t\t\r\n\t\t\tScanJob\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tPost\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t/BufferInfo\r\n\t\t\t\r\n\t\t\tBufferInfo\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tPut\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n","headers":{"server":"HP HTTP Server; HP DeskJet 3700 series - T8W42C; Serial Number: ▉▉▉▉▉▉▉; Built:Thu Apr 28, 2022 12:41:22PM {LAP1FN2218AR}","content-type":"text/xml","content-length":"3465","cache-control":"must-revalidate, max-age=0","pragma":"no-cache"},"statusText":"OK"} 0005 -> {"baseURL":"http://192.168.▉.▉▉▉","url":"/Scan/ScanCaps","method":"GET","responseType":"text"} 0005 <- {"status":200,"data":"\r\n\r\n\r\n\t\r\n\t\txxxx\r\n\t\t43\r\n\t\r\n\t\r\n\t\t\r\n\t\t\tK1\r\n\t\t\t\r\n\t\t\t\tRaw\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tToneMap\r\n\t\t\t\tSharpening\r\n\t\t\t\tBwThreshold\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tNTSC\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\tGray8\r\n\t\t\t\r\n\t\t\t\tRaw\r\n\t\t\t\tJpeg\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tToneMap\r\n\t\t\t\tSharpening\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tNTSC\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\tColor8\r\n\t\t\t\r\n\t\t\t\tRaw\r\n\t\t\t\tJpeg\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tToneMap\r\n\t\t\t\tSharpening\r\n\t\t\t\r\n\t\t\r\n\t\r\n\t\r\n\t\t\r\n\t\t\t8\r\n\t\t\t8\r\n\t\t\t2550\r\n\t\t\t5100\r\n\t\t\t0\r\n\t\t\t0\r\n\t\t\t0\r\n\t\t\t0\r\n\t\t\t75\r\n\t\t\t600\r\n\t\t\t1200\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t75\r\n\t\t\t\t\t75\r\n\t\t\t\t\t1\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tK1\r\n\t\t\t\t\t\tGray8\r\n\t\t\t\t\t\tColor8\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t100\r\n\t\t\t\t\t100\r\n\t\t\t\t\t1\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tK1\r\n\t\t\t\t\t\tGray8\r\n\t\t\t\t\t\tColor8\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t200\r\n\t\t\t\t\t200\r\n\t\t\t\t\t1\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tK1\r\n\t\t\t\t\t\tGray8\r\n\t\t\t\t\t\tColor8\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t300\r\n\t\t\t\t\t300\r\n\t\t\t\t\t1\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tK1\r\n\t\t\t\t\t\tGray8\r\n\t\t\t\t\t\tColor8\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t600\r\n\t\t\t\t\t600\r\n\t\t\t\t\t1\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tK1\r\n\t\t\t\t\t\tGray8\r\n\t\t\t\t\t\tColor8\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t1\r\n\t\t\r\n\t\t\tDetectPaperLoaded\r\n\t\t\r\n\t\r\n\r\n","headers":{"server":"HP HTTP Server; HP DeskJet 3700 series - T8W42C; Serial Number: ▉▉▉▉▉▉▉▉; Built:Thu Apr 28, 2022 12:41:22PM {LAP1FN2218AR}","content-type":"text/xml","transfer-encoding":"chunked","cache-control":"must-revalidate, max-age=0","pragma":"no-cache"},"statusText":"OK"} TypeError: Cannot read properties of undefined (reading '0') at get platenMaxWidth (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/ScanCaps.js:16:63) at readDeviceCapabilities (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/readDeviceCapabilities.js:39:87) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async listenCmd (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:27:32) at async Command. (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:214:9) at async Command.parseAsync (/opt/homebrew/lib/node_modules/node-hp-scan-to/node_modules/commander/lib/command.js:1092:5) at async main (/opt/homebrew/lib/node_modules/node-hp-scan-to/dist/index.js:254:5)
manuc66 commented 4 weeks ago

Hello @gy-mate

It seems your device is responding in plain text instead of in xml. Can you tell me if you get some xml output if you query with your browser this ressource : http://192.168.▉.▉▉▉/Scan/ScanCaps

You may also try with curl to see the output by requesting xml: ´curl -k -H "Accept: text/plain" http://192.168.▉.▉▉▉//Scan/ScanCaps´

gy-mate commented 4 weeks ago

It seems your device is responding in plain text instead of in xml.

@manuc66 My bad, it was the GitHub Markdown formatter that removed all XML tags from the issue description—I didn't notice it. I've re-uploaded it as a Gist: https://gist.github.com/gy-mate/b37f03fa3d8eaf1284140997e6602062 It looks like an XML to me.

Can you tell me if you get some xml output if you query with your browser this ressource : http://192.168.▉.▉▉▉/Scan/ScanCaps

Sure, I get the following XML on this site (zipped it to be able to upload it): ScanCaps.xml.zip

manuc66 commented 3 weeks ago

Hello @gy-mate,

Thank you for providing the new debug output. I noticed that there is no platen described in the ScanCaps. Could you please confirm whether your device only supports scanning from the automatic document feeder and not from the platen?

Thank you!

manuc66 commented 3 weeks ago

@gy-mate The branch handling the missing Platen in the xml has been merged. Could you give it another try and tell me if it works ?

gy-mate commented 3 weeks ago

Could you please confirm whether your device only supports scanning from the automatic document feeder and not from the platen?

@manuc66 I can confirm that, it doesn't even have a platen. (My bad, I didn't know the meaning of platen until now.) The HP DeskJet Ink Advantage 3775 All-in-One is (or was) the smallest all-in-one printer on the market:

gy-mate commented 3 weeks ago

@gy-mate The branch handling the missing Platen in the xml has been merged. Could you give it another try and tell me if it works ?

@manuc66 It works, thank you very much!! :)