Transient data access exception even after retries

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

org.springframework.dao.TransientDataAccessResourceException: Server at neo4j-core-xxxxxxx-xxx.production-orch-xxxx.neo4j.io:7687 is no longer available; Error code 'N/A'; nested exception is org.neo4j.driver.exceptions.SessionExpiredException: Server at neo4j-core-xxxxxxx-xxx.production-orch-xxxx.neo4j.io:7687 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

...
neo4jdbQueryMono
.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!