YukiDrive icon indicating copy to clipboard operation
YukiDrive copied to clipboard

请问上传工具只能在cli所在目录运行吗?

Open ruaoj opened this issue 4 years ago • 1 comments

在别的路径下如/root 下用绝对路径运行会报错 ,日记如下

 System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
   at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)
   at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.GetAsync(String requestUri)
   at YukiDrive.CLI.Services.HttpService.GetUploadUrl(String uploadPath, String siteName)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at YukiDrive.CLI.Program.Main(String[] args)

而在程序所在文件夹下不管用绝对路径还是相对路径都能正常上传,想写脚本完成自动上传功能,请问有什么好的办法吗?

ruaoj avatar Oct 25 '21 16:10 ruaoj

Cli 工具仍处于早期测试状态,近期将会有更新。

YukiCoco avatar Oct 27 '21 08:10 YukiCoco