powershell cloudberry管理单元-选择云文件夹-抛出400错误请求错误
我正在尝试在amazon s3 bucket和本地文件夹之间自动同步 但当我运行命令时:powershell cloudberry管理单元-选择云文件夹-抛出400错误请求错误,powershell,amazon-s3,cloudberry,Powershell,Amazon S3,Cloudberry,我正在尝试在amazon s3 bucket和本地文件夹之间自动同步 但当我运行命令时: $source = $s3 | Select-CloudFolder -path TestAutoSync/backup 我得到以下错误: Select-CloudFolder : The remote server returned an error: (400) Bad Request. At line:1 char:35 + $source = $s3 | Select-CloudFolder &l
$source = $s3 | Select-CloudFolder -path TestAutoSync/backup
我得到以下错误:
Select-CloudFolder : The remote server returned an error: (400) Bad Request.
At line:1 char:35
+ $source = $s3 | Select-CloudFolder <<<< -path TestAutoSync/backup
+ CategoryInfo : NotSpecified: (:) [Select-CloudFolder], BadRequestException
+ FullyQualifiedErrorId : CloudBerryLab.Base.Exceptions.BadRequestException,CloudBerryLab.Explorer.PSSnapIn.Comman
ds.SelectCloudFolder
如果您之前已经解决过此类问题,请提供您的意见。好的,给您
Get-CloudS3Connection应该包含主机/路径请求样式设置,这应该对您有所帮助
请执行以下操作。在您的“Get-CloudS3Connection”行之前,插入以下内容:
set-cloudoption -PathStyle Path
因此,您的完整代码应该如下所示
Add-PSSnapin CloudBerryLab.Explorer.PSSnapIn
Set-CloudOption -ProxyAddress xxxx -ProxyPort xxxx -PathStyle Path
$key = "xxxx"
$secret = "xxxx"
$s3 = Get-CloudS3Connection -Key $key -Secret $secret
$source = $s3 | Select-CloudFolder -path TestAutoSync/backup
您是否尝试过将TestAutoSync/backup用引号括起来,Select CloudFolder cmdlet是否支持管道输入?您的CloudBerry Explorer版本是什么?@Evgeny我正在使用CloudBerry免费软件4。7@Persistent13,是的,我试过在TestAutoSync/backup周围用引号括起来,根据我迄今为止看到的示例,是的,Select-CloudFolder cmdlet支持来自管道的输入谢谢@Evgeny,但是添加-PathStyle并没有改变任何东西。我仍然得到相同的错误…嘿,海盗,有新版本的探索者,你应该很好,有你的脚本并运行!
Add-PSSnapin CloudBerryLab.Explorer.PSSnapIn
Set-CloudOption -ProxyAddress xxxx -ProxyPort xxxx -PathStyle Path
$key = "xxxx"
$secret = "xxxx"
$s3 = Get-CloudS3Connection -Key $key -Secret $secret
$source = $s3 | Select-CloudFolder -path TestAutoSync/backup