vcheckzen/FamilyCloudSpeederInShell

Windows 10 PS脚本报错

terrytw opened this issue · 1 comments

*******************************************
Sending HeartBeat Package <1>
Invoke-WebRequest : 远程服务器返回错误: (400) 错误的请求。
所在位置 E:\Downloads\FamilyCloudSpeederInShell-master\powershell\CloudDisk\speedup.ps1:23 字符: 17
+ ... $response = Invoke-WebRequest -Uri "${HOSTNAME}${LOGIN_URL}?accessTok ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebExce
    ption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

使用“1”个参数调用“GetBytes”时发生异常:“数组不能为空。
参数名: chars”
所在位置 E:\Downloads\FamilyCloudSpeederInShell-master\powershell\CloudDisk\speedup.ps1:7 字符: 5
+     $hmacsha.key = [Text.Encoding]::ASCII.GetBytes($key)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException

HeartBeat:<Signature:******************************>
Date:<Sat, 01 Jun 2019 10:18:45 GMT>
Invoke-WebRequest : 远程服务器返回错误: (400) 错误的请求。
所在位置 E:\Downloads\FamilyCloudSpeederInShell-master\powershell\CloudDisk\speedup.ps1:38 字符: 17
+ ... $response = Invoke-WebRequest -Uri "${HOSTNAME}${ACCESS_URL}?qosClien ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebExce
    ption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Response:
Sending HeartBeat Package <1> Failed.
*******************************************

请问是什么原因?

token 错了,按照 wiki 抓取