Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

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

Open
ruaoj opened this issue Oct 25, 2021 · 1 comment
Open

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

ruaoj opened this issue Oct 25, 2021 · 1 comment

Comments

@ruaoj
Copy link

ruaoj commented Oct 25, 2021

在别的路径下如/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)

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

@YukiCoco
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants