instead of "bolt://localhost:7687 " use connection uri present in the aura db.I had the same issue few moments ago but resolved by trying this.the uri will look like "neo4j+s://721b3.databases.neo4j.io" but may differ for each user at this part "721b3"