nats.java icon indicating copy to clipboard operation
nats.java copied to clipboard

Fix: raise status message when doing incorrect pull

Open MauriceVanVeen opened this issue 1 year ago • 0 comments

Resolves https://github.com/nats-io/nats.java/issues/1194

Simple potential fix is enabling raiseStatusWarnings in the _pull(..).

Would keep the behaviour the same, just informing the user of the status message being hit:

Aug 09, 2024 12:07:58 PM io.nats.client.impl.ErrorListenerLoggerImpl pullStatusWarning
WARNING: pullStatusWarning, Connection: 13, Subscription: 631365415, Consumer Name: 8V2ygPms7b, Status:Status{code=409, message='Exceeded MaxRequestBatch of 1'}

MauriceVanVeen avatar Aug 09 '24 10:08 MauriceVanVeen