Skip to content

Problem accessing ScannerCapabilities on EPSON ET-2650 via http #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kjabl opened this issue Feb 9, 2025 · 3 comments
Closed

Problem accessing ScannerCapabilities on EPSON ET-2650 via http #57

kjabl opened this issue Feb 9, 2025 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kjabl
Copy link

kjabl commented Feb 9, 2025

Describe the bug
I get a 404 "Fehler beim Abrufen der Eigenschaften des Scanners: NotSuccessfulCode(responseCode=404)

To Reproduce
Steps to reproduce the behavior:

  1. Go to the App on the Screen "Scannersuche"
  2. Click on your Scanner
  3. See error

Expected behavior
I'm not sure what would be the next step, but I guess some screen to start scanning.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: Google Pixel 8a
  • Android version: [e.g. 14]
  • ScanBridge version: 1.1.0 (1001000, 60a14e7)

Additional context
I have an Epson ET-2650. It is shown on the search screen als
"EPSON ET-2650 Series-0BF096-03"
http://192.168.178.9.170/eSCL

When I tried to load http://192.168.9.170/eSCL/ScannerCapabilities in the browser on my laptop I get the 404, too. But via https it works. Sadly the scanner doesn't seem to advertise itself as https.
I just found out I can manually add a scanner. That way I can force SSL but the app doesn't accept my scanners self signed certificate.
Is there any way to circumvent this without creating an own root CA, new certificate and loading that certificate into scanner and root CA into the device?

@Chrisimx Chrisimx self-assigned this Feb 9, 2025
@Chrisimx Chrisimx added the bug Something isn't working label Feb 9, 2025
@Chrisimx Chrisimx added this to the v1.1.1 milestone Feb 9, 2025
@Chrisimx
Copy link
Owner

Chrisimx commented Feb 9, 2025

Can please install the latest nightly build? Test with this version whether it works. There were a lot of changes in this direction, so it might be possible that this is fixed already. But if your scanner really only has an HTTPS endpoint for eSCL it would be necessary to either create a root CA (and adding it in the Android settings) or, and this is in my opinion much more user-friendly, make it possible to add exceptions for specific cert and hostname combinations.

It would be interesting to see how your scanner service info looks like. For this you have to go into the settings and activate the debug log checkbox. Then try to connect to your scanner in the discovery screen. Finally, go into settings again and export the debug log to a file.

You can either upload the file here or send it to [email protected]. If the connection to your scanner would work, the file might contain the serial number of your scanner. If it can't connect it might only contain an UUID which I'm not sure of whether it is unique to the device or whether it would change if you'd reset the device.
Anyway, if you want to censor it, you can search for "UUID=" in the file and replace that UUID. You can also search for "scan:UUID" and "pwg:SerialNumber" in the file but if it can't connect these strings should not be found there.

@Chrisimx Chrisimx removed this from the v1.1.1 milestone Feb 9, 2025
@kjabl
Copy link
Author

kjabl commented Feb 12, 2025

Hi @Chrisimx thanks for your quick response! I'm sorry it took me so long to test again.
I just tested with the latest nightly build from today (february 11).
It took me a few attempts today. At first I got timeout then 503's.
But now it works absolutely fine.
Even with the http version. I don't know what happened but now my Scanner answers on the http requests. Also from the computer. The https still gives me the self signed certificate error but that's no problem anymore.

Thanks alot. I think your app is great.

@Chrisimx
Copy link
Owner

Thank you! ❤️

@Chrisimx Chrisimx added this to the v1.2.0 milestone Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants