powershell - 底层连接已关闭:neo4j powershell 脚本的连接意外关闭
问题描述
我有一个 powershell 脚本,我试图用它来在 neo4j 数据库上运行查询。按照此处的步骤操作:https ://github.com/RamblingCookieMonster/PSNeo4j 。
问题是,当我使用正确的凭据和 URL 运行代码时,出现连接关闭错误。我很难相信它也是通过“Invoke-WebRequest”命令发生的库。假设我的信用和网址是正确的,我有什么遗漏吗?
代码:
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
解决方案
推荐阅读
- python - python虚拟环境应该与docker镜像一起使用吗?
- python - 如何使用 pandas 将 oracle clob 列转换为列表
- python - 如何枚举列表但从 1 开始索引?
- reactjs - 如何使 tsconfig 与 webpack 提供插件一起使用?
- r - 如果计算相对拒绝频率,如何衡量与显着性水平是否显着不同?(R中的正态性测试)
- android-studio - 无法在离线模式下运行或构建我的简单应用程序
- utf-8 - MTProto 字符串类型:长度是以字节还是 UTF-8 字符串长度来衡量的?
- c++ - 标识符未定义 C++
- azure - 删除 Azure Active Directory (ADD) 和关联门户
- flutter - 从飞镖列表中删除重复项