Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

pikpak: fix fatal crash on startup with token that can't be refreshed

Nick Craig-Woodee72554fb944
diff --git a/backend/pikpak/pikpak.go b/backend/pikpak/pikpak.go
index b70ecf92a..f2a1390f1 100644
--- a/backend/pikpak/pikpak.go
+++ b/backend/pikpak/pikpak.go
@@ -561,6 +561,7 @@ func newFs(ctx context.Context, name, path string, m configmap.Mapper) (*Fs, err
if strings.Contains(err.Error(), "invalid_grant") {
return f, f.reAuthorize(ctx)
}
+ return nil, err
}
return f, nil