Unable to retrieve routing information Transaction failed and will be retried in

I'm trying to connect/add to my neo4j database thru python script running on a VM instance.

I see the following message and eventually my query is not executed.

Unable to retrieve routing information
Transaction failed and will be retried in 1.1975839775586747s (Unable to retrieve routing information)
Unable to retrieve routing information
Transaction failed and will be retried in 2.392508672358376s (Unable to retrieve routing information)
Unable to retrieve routing information
Transaction failed and will be retried in 3.7862963281207898s (Unable to retrieve routing information)
Unable to retrieve routing information
Transaction failed and will be retried in 8.162778963399008s (Unable to retrieve routing information)
Unable to retrieve routing information
Transaction failed and will be retried in 14.604111687807567s (Unable to retrieve routing information)
Unable to retrieve routing information

Using Python 3.11

@setu.96.shah

a. what version of Neo4j?
b. have you verified connectivity?
c. if you enablle debug logging from the Neo4j Python driver and as described at https://aura.support.neo4j.com/hc/en-us/articles/10550176964243-How-to-Enable-Debug-logs-for-the-Neo4j-Python-Driver does this provide further details to the failure?

Besides all of @dana_canzano questions, are you using bolt or neo4j url protocol? Try bolt if you are using neo4j