Comment 45 for bug 1811504

Revision history for this message
Ben Bipod (benbipod) wrote : Re: scan with Laserjet MFP-M28 fails

To summarize the state of wifi scanning: hp-scan fails with output

> error: SANE: Error during device I/O (code=9)

corresponding to

> Apr 26 20:04:57 myhost /hp-scan[11160]: http.c 322: invalid http_status=503

in systemd journal/syslog. This is as far as you can get with HPLIP at the moment.

Then there is the generic eSCL scan tool (non-HPLIP) at https://github.com/kno10/python-scan-eSCL. It also fails with

> urllib2.HTTPError: HTTP Error 503: Service Unavailable

@Lucazade in comment #31 posted a modified version of that tool, essentially just delaying the retrieval of the scan result for 20 seconds after the scan request has been issued, thus avoiding the HTTP 503 error. I confirm this works for me and encourage everybody affected by this bug to try it out.

Also, @petrj in comment #36 announced another custom eSCL based scan tool at https://github.com/petrj/HPWifiScan, which I can also confirm works for me. Again, waiting for the result seems to be the essential feature, this tool more dynamically polls the job status instead of waiting for a fixed amount of time.

Many thanks to both @Lucazade and @petrj! I hope some HPLIP developer is reviewing this and can base a fix to the HPLIP software on the work done here.