Transient data access exception even after retries

Hi, in one of my customer-facing services, I am getting

org.springframework.dao.TransientDataAccessResourceException: Server at is no longer available; Error code 'N/A'; nested exception is org.neo4j.driver.exceptions.SessionExpiredException: Server at is no longer available

From my understanding, I was supposed to retry these queries, which should have run usually the second time. But I am using reactive neo4j in my spring boot application.

I am doing it like this

.onErrorResume(TransientDataAccessResourceException.class, ex -> neo4jdbQueryMono)

And I still have this exception in the logs. Can someone tell me where I have gone wrong and what can be done to avoid this exception? Thanks in advance!