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

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

@ruaoj

Description

@ruaoj

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions