2020/11/05 22:35:25 Error while fetching the latest release of Web GUI: failed getting latest release of rclone-webui: Get "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest": net/http: TLS handshake timeout
Can one download those file manually?
Or is there a release contain Web GUI content, then the download doesn't need?
What is your current rclone version (output from rclone version)?
v1.53.2
What problem are you are trying to solve?
Find the source code
There is a function CheckAndDownloadWebGUIRelease,It seem like that GetLatestReleaseURL always will be run?
How do you think rclone should be changed to solve that?
Support more information in
2020/11/05 22:35:25 Error while fetching the latest release of Web GUI: failed getting latest release of rclone-webui: Get "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest": net/http: TLS handshake timeout
Tell user he/she can download the file manully to directory xxx
But there is still a question. i.e After download currentbuild.zip from releases, which path it should be.
When someone downloads gui releases manually, he/she doesn't know where to put it.
It is possible to show some prompt?Like follow
./rclone.exe rcd --rc-web-gui
Try to download xxx from url https://api.github.com/repos/rclone/rclone-webui-react/releases/latest
Or you can download it manually, and rename it to path ~/path/to/web/gui/zip/cache
// makeCacheDir returns a directory to use for caching.
//
// Code borrowed from go stdlib until it is made public
func makeCacheDir() (dir string) {
// Compute default location.
switch runtime.GOOS {
case "windows":
dir = os.Getenv("LocalAppData")
case "darwin":
dir = os.Getenv("HOME")
if dir != "" {
dir += "/Library/Caches"
}
case "plan9":
dir = os.Getenv("home")
if dir != "" {
// Plan 9 has no established per-user cache directory,
// but $home/lib/xyz is the usual equivalent of $HOME/.xyz on Unix.
dir += "/lib/cache"
}
default: // Unix
// https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
dir = os.Getenv("XDG_CACHE_HOME")
if dir == "" {
dir = os.Getenv("HOME")
if dir != "" {
dir += "/.cache"
}
}
}
// if no dir found then use TempDir - we will have a cachedir!
if dir == "" {
dir = os.TempDir()
}
return filepath.Join(dir, "rclone")
}
We know cacheDir from environment LocalAppData on windows.