-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Printers
- Printer Wireless, Networking & Internet
- Scanning via SANE on Ubuntu fails due to HTTP error 403 from...

Create an account on the HP Community to personalize your profile and ask a question
09-25-2023 03:45 AM
Using SANE on Ubuntu gives the following error:
scanimage -d 'hpaio:/net/HP_OfficeJet_Pro_8020_series?ip=10.0.0.171' --format tiff -o bla
->
scanimage: sane_start: Error during device I/O
Reason is that the Printer/Scanner return an http 403 after POSTing to:
/Scan/Jobs/
->
W...HTTP/1.1.403
.Forbidden..Serv
er:.nginx..Date:
.Mon,.25.Sep.202
3.09:46:26.GMT..
Content-Length:.
0..Connection:.k
eep-alive..Cache
-Control:.must-r
evalidate,.max-a
ge=0..Pragma:.no
-cache....
Anyone who can help?
Ubuntu:
ndreas.behal@itsv.at@31NL00057:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
andreas@:~$ airscan-discover
[devices]
HP OfficeJet Pro 8020 series = http://10.0.0.171:53048, WSD
works fine ..
10-04-2023 07:47 AM - edited 10-04-2023 07:52 AM
Shameless bump. I have the same problem but another printer model and Linux distributions (OpenSUSE Leap 15.4 & Leap 15.5).
Scanning worked like a charm before from different computers with different linux distributions. But it stopped working for several weeks by now. My printer has 'automatic updates' enabled. I'm pretty sure it's the last firmware update of the printer which causes this problem, because i didn't changed anything on the client side (no updates for hplip-sane && sane-backends, i even downgraded both packages to test it but it is still not working) and the date when the problem occured loosely coincides with the firmware build-date:
printer:
HP OfficeJet Pro 9010 series
Firmwareversion MANHTNPP1N002.2329B.00
Build-Datum 2023-07-22
Below is the HTTP communication between client and printer until it fails with '403 FORBIDDEN':
GET /Scan/ScanCaps HTTP/1.1
Host: localhost
User-Agent: hplip
Accept: text/xml
Accept-Language: en-us,en
Keep-Alive: 20
Proxy-Connection: keep-alive
Cookie: AccessCounter=new
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 04 Oct 2023 03:17:20 GMT
Content-Type: text/xml
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: must-revalidate, max-age=0
Pragma: no-cache
GET /Scan/Status HTTP/1.1
Host: localhost
User-Agent: hplip
Accept: text/xml
Accept-Language: en-us,en
Keep-Alive: 20
Proxy-Connection: keep-alive
Cookie: AccessCounter=new
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 04 Oct 2023 03:17:20 GMT
Content-Type: text/xml
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: must-revalidate, max-age=0
Pragma: no-cache
POST /Scan/Jobs HTTP/1.1
Host: localhost
User-Agent: hplip
Accept: text/plain, */*
Accept-Language: en-us,en
Accept-Charset: ISO-8859-1,utf-8
Keep-Alive: 1000
Proxy-Connection: keep-alive
Content-Type: */*; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 659
Cookie: AccessCounter=new
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.1 403 Forbidden
Server: nginx
Date: Wed, 04 Oct 2023 03:17:20 GMT
Content-Length: 0
Connection: keep-alive
Cache-Control: must-revalidate, max-age=0
Pragma: no-cache
@HP Help please.