Open iagosansouza opened 1 year ago
Hey there @ctalkington, mind taking a look at this issue as it has been labeled with an integration (ipp
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
ipp documentation ipp source (message by IssueLinks)
same issue, following
as of 2023.6.0 ipp no longer connects to printer
Home Assistant 2023.6.1 Supervisor 2023.06.1 Operating System 10.2 Frontend 20230608.0 - latest
Logger: homeassistant.config_entries Source: config_entries.py:1247 First occurred: 05:55:49 (1 occurrences) Last logged: 05:55:49
Config entry 'EPSON ET-3710 Series' for ipp integration not ready yet: Invalid response from API: Error occurred while communicating with IPP server.; Retrying in background
I had the same problem. Adding the printer (Epson ET-3850) again with the option "Uses an SSL certificate" solved the problem for me.
I had the same problem. Adding the printer (Epson ET-3850) again with the option "Uses an SSL certificate" solved the problem for me.
I tried here but the same error happens
I managed to get it working by updating (I use the dock version) and removing and re adding the integration.
I'm hoping to expand support but it takes samples of ipp output to use as test fixtures.
right now the best way is to clone pyipp repo and run the debug example and submit that via issue.
https://github.com/ctalkington/python-ipp/blob/master/examples/debug.py
Same issue for Oki C301 since upgrade
Same Issue with OKI B401dn: IPP-Version wird vom Drucker nicht unterstützt. Home Assistant version 2023.11.3
Same issue with OKI C822
HA core 2023.11.3
@ctalkington I've changed debug.py
to try to connect with my OKI C822 at ipp://192.168.1.73:631/ipp
, but it doesn't yield anything noteworthy:
⬢[lorbus@toolbox examples]$ python debug.py
/var/home/lorbus/code/python-ipp/examples/debug.py:50: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
ipp://192.168.1.73:631/ipp/print
yields a 404:
⬢[lorbus@toolbox examples]$ python debug.py
/var/home/lorbus/code/python-ipp/examples/debug.py:50: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
Traceback (most recent call last):
File "/var/home/lorbus/code/python-ipp/examples/debug.py", line 51, in <module>
loop.run_until_complete(main())
File "/usr/lib64/python3.12/asyncio/base_events.py", line 684, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/var/home/lorbus/code/python-ipp/examples/debug.py", line 12, in main
response = await ipp.raw(
^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/pyipp/ipp.py", line 208, in raw
return await self._request(data=message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/pyipp/ipp.py", line 142, in _request
raise IPPResponseError(
pyipp.exceptions.IPPResponseError: ('HTTP 404', {'content-type': 'text/html', 'message': '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">\n<HTML>\n\n<HEAD>\n\t<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">\n<title>HTTP 404</title>\n</HEAD>\n\n<BODY BGCOLOR="#FFFFFF">\n\n<P>\n<TABLE BORDER="0" CELLPADDING="4" WIDTH="560">\n\t<TR>\n\t\t<TD HEIGHT="50" VALIGN="BOTTOM" NOWRAP><font face="Arial" size="6">Not Found</font></TD>\n\t</TR>\n</TABLE>\n</P>\n\n<BLOCKQUOTE>\n<TABLE BORDER="0" WIDTH="560">\n\t<TR>\n\t\t<TD WIDTH="100%"><font face="Arial">HTTP-1.0 / 404</font></TD>\n\t</TR>\n</TABLE>\n</BLOCKQUOTE>\n\n</BODY>\n</HTML>\n', 'status-code': 404})
And ipps://192.168.1.73:631/ipp
yields an SSL error (as expected):
⬢[lorbus@toolbox examples]$ python debug.py
/var/home/lorbus/code/python-ipp/examples/debug.py:50: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
Traceback (most recent call last):
File "/var/home/lorbus/.local/lib/python3.12/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/asyncio/base_events.py", line 1146, in create_connection
transport, protocol = await self._create_connection_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/asyncio/base_events.py", line 1179, in _create_connection_transport
await waiter
File "/usr/lib64/python3.12/asyncio/sslproto.py", line 575, in _on_handshake_complete
raise handshake_exc
File "/usr/lib64/python3.12/asyncio/sslproto.py", line 557, in _do_handshake
self._sslobj.do_handshake()
File "/usr/lib64/python3.12/ssl.py", line 917, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1000)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/home/lorbus/.local/lib/python3.12/site-packages/pyipp/ipp.py", line 114, in _request
response = await self.session.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/aiohttp/client.py", line 574, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/aiohttp/connector.py", line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/aiohttp/connector.py", line 1235, in _create_direct_connection
raise last_exc
File "/var/home/lorbus/.local/lib/python3.12/site-packages/aiohttp/connector.py", line 1204, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/aiohttp/connector.py", line 996, in _wrap_create_connection
raise ClientConnectorSSLError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host 192.168.1.73:631 ssl:False [[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1000)]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/var/home/lorbus/code/python-ipp/examples/debug.py", line 51, in <module>
loop.run_until_complete(main())
File "/usr/lib64/python3.12/asyncio/base_events.py", line 684, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/var/home/lorbus/code/python-ipp/examples/debug.py", line 12, in main
response = await ipp.raw(
^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/pyipp/ipp.py", line 208, in raw
return await self._request(data=message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/lorbus/.local/lib/python3.12/site-packages/pyipp/ipp.py", line 128, in _request
raise IPPConnectionError(
pyipp.exceptions.IPPConnectionError: Error occurred while communicating with IPP server.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
not stale
Hi,
still not solved for my B401DN:
IPP-Version
wird vom Drucker nicht unterstützt.`
Core 2024.4.3 Supervisor 2024.04.0 Operating System 12.2 Frontend 20240404.2
So not stale
regards Thomas
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Hi, still not solved for my B401DN: IPP-Version wird vom Drucker nicht unterstützt.`
Core 2024.7.2 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240710.0
So not stale
regards Thomas
ipps://192.168.178.40:631/ipp/lp or ipps://192.168.178.40:631/ipp yiealds
$ python3 ./debug.py Traceback (most recent call last): File "/home/ts/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) File "/usr/lib/python3.9/asyncio/base_events.py", line 1081, in create_connection transport, protocol = await self._create_connection_transport( File "/usr/lib/python3.9/asyncio/base_events.py", line 1111, in _create_connection_transport await waiter File "/usr/lib/python3.9/asyncio/sslproto.py", line 528, in data_received ssldata, appdata = self._sslpipe.feed_ssldata(data) File "/usr/lib/python3.9/asyncio/sslproto.py", line 188, in feed_ssldata self._sslobj.do_handshake() File "/usr/lib/python3.9/ssl.py", line 944, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/home/ts/.local/lib/python3.9/site-packages/pyipp/ipp.py", line 114, in _request response = await self.session.request( File "/home/ts/.local/lib/python3.9/site-packages/aiohttp/client.py", line 574, in _request conn = await self._connector.connect( File "/home/ts/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 540, in connect proto = await self._create_connection(req, traces, timeout) File "/home/ts/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) File "/home/ts/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 1231, in _create_direct_connection raise last_exc File "/home/ts/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 1200, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/home/ts/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection raise ClientConnectorSSLError(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host 192.168.178.40:631 ssl:False [[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ts/Downloads/python-ipp/examples/./debug.py", line 52, in
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
This is still an issue. @frenck mind reopening https://github.com/home-assistant/core/pull/115661 so I can work on this further there, otherwise I'll create a new PR.
Still an issue for OKI B401 ...
The problem
I am trying to connect to an OKI C711 printer via IPP but when creating the connection I get the error "IPP version not supported by the printer". I tried to find something about the IPP version of my printer and Home Assistant but found nothing.
Home Assistant 2023.5.3 Supervisor 2023.04.1 Operating System 10.1 Frontend: 20230503.3 - latest
What version of Home Assistant Core has the issue?
2023.5.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Internet Printing Protocol (IPP)
Link to integration documentation on our website
https://www.home-assistant.io/integrations/ipp
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response