gmuth / ipp-client-kotlin

A client implementation of the ipp protocol written in kotlin
MIT License
66 stars 9 forks source link

de.gmuth.ipp.core.IppException: Attribute 'notify-lease-duration' not found in group subscription-attributes-tag #25

Closed Badouu closed 1 month ago

Badouu commented 1 month ago

Hello, I get this error with the command : job.subscription?.pollAndHandleNotifications { println(it) }

gmuth commented 1 month ago

Does your application communicate with a CUPS server?

It might help to call updateAttributes() of IppSubscription before calling pollAndHandleNotifications().

I have changed the handling for subscription-expiry-checking. Please pull the main branch, build the lib and test again. In case of errors please provide the full stacktrace.

Badouu commented 1 month ago

Hello, yes my application communicates with a CUPS server. Okay, I'll do the test and get back to you.

gmuth commented 1 month ago

My tests were successful, so the bug is now fixed (for versions after 3.1)

Badouu commented 1 month ago

I've also tested it, and I don't have any more problems. Thank you.