I have a powershell script I am trying to use to run queries on a neo4j database. Following the steps here: https://github.com/RamblingCookieMonster/PSNeo4j.
The issue is that when I run the code with proper creds and URL, I get a connection closed error. I am having trouble believing it is the library this happens with a 'Invoke-WebRequest' command too. Assuming that my creds and url are correct, is there something I am missing?
Code:
Import-Module PSNeo4j
$Password = ConvertTo-SecureString -String "dummypswd" -AsPlainText -Force
$Cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList 'username', $password
Set-PSNeo4jConfiguration -Credential $Cred -BaseUri 'http://localhost:7687'
# Did we connect?
Get-Neo4jUser