From ac6da278d84deaa162c2b4fa291390e96ccbcca8 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Mon, 2 Dec 2024 03:48:33 -0800 Subject: [PATCH] Troubleshoot --- dist/restore-only/index.js | 11 +++++------ dist/restore/index.js | 11 +++++------ dist/save-only/index.js | 11 +++++------ dist/save/index.js | 11 +++++------ 4 files changed, 20 insertions(+), 24 deletions(-) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index beccf43..1be9691 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -9825,19 +9825,18 @@ class UploadProgress { } exports.UploadProgress = UploadProgress; function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { - var _a; return __awaiter(this, void 0, void 0, function* () { const blobClient = new storage_blob_1.BlobClient(signedUploadURL); const blockBlobClient = blobClient.getBlockBlobClient(); - const properties = yield blobClient.getProperties(); - const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1; - const uploadProgress = new UploadProgress(contentLength); + // const properties = await blobClient.getProperties() + // const contentLength = properties.contentLength ?? -1 + const uploadProgress = new UploadProgress(100 * 1024 * 1024); // Specify data transfer options const uploadOptions = { blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize, concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency, - maxSingleShotSize: 128 * 1024 * 1024 // 128 MiB initial transfer size - // onProgress: uploadProgress.onProgress() + maxSingleShotSize: 128 * 1024 * 1024, + onProgress: uploadProgress.onProgress() }; try { uploadProgress.startDisplayTimer(); diff --git a/dist/restore/index.js b/dist/restore/index.js index 8fe3221..bb9d575 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -9825,19 +9825,18 @@ class UploadProgress { } exports.UploadProgress = UploadProgress; function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { - var _a; return __awaiter(this, void 0, void 0, function* () { const blobClient = new storage_blob_1.BlobClient(signedUploadURL); const blockBlobClient = blobClient.getBlockBlobClient(); - const properties = yield blobClient.getProperties(); - const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1; - const uploadProgress = new UploadProgress(contentLength); + // const properties = await blobClient.getProperties() + // const contentLength = properties.contentLength ?? -1 + const uploadProgress = new UploadProgress(100 * 1024 * 1024); // Specify data transfer options const uploadOptions = { blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize, concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency, - maxSingleShotSize: 128 * 1024 * 1024 // 128 MiB initial transfer size - // onProgress: uploadProgress.onProgress() + maxSingleShotSize: 128 * 1024 * 1024, + onProgress: uploadProgress.onProgress() }; try { uploadProgress.startDisplayTimer(); diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 86122dd..d7ab75b 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -9825,19 +9825,18 @@ class UploadProgress { } exports.UploadProgress = UploadProgress; function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { - var _a; return __awaiter(this, void 0, void 0, function* () { const blobClient = new storage_blob_1.BlobClient(signedUploadURL); const blockBlobClient = blobClient.getBlockBlobClient(); - const properties = yield blobClient.getProperties(); - const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1; - const uploadProgress = new UploadProgress(contentLength); + // const properties = await blobClient.getProperties() + // const contentLength = properties.contentLength ?? -1 + const uploadProgress = new UploadProgress(100 * 1024 * 1024); // Specify data transfer options const uploadOptions = { blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize, concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency, - maxSingleShotSize: 128 * 1024 * 1024 // 128 MiB initial transfer size - // onProgress: uploadProgress.onProgress() + maxSingleShotSize: 128 * 1024 * 1024, + onProgress: uploadProgress.onProgress() }; try { uploadProgress.startDisplayTimer(); diff --git a/dist/save/index.js b/dist/save/index.js index 3a4ea8f..85b54ad 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -9825,19 +9825,18 @@ class UploadProgress { } exports.UploadProgress = UploadProgress; function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) { - var _a; return __awaiter(this, void 0, void 0, function* () { const blobClient = new storage_blob_1.BlobClient(signedUploadURL); const blockBlobClient = blobClient.getBlockBlobClient(); - const properties = yield blobClient.getProperties(); - const contentLength = (_a = properties.contentLength) !== null && _a !== void 0 ? _a : -1; - const uploadProgress = new UploadProgress(contentLength); + // const properties = await blobClient.getProperties() + // const contentLength = properties.contentLength ?? -1 + const uploadProgress = new UploadProgress(100 * 1024 * 1024); // Specify data transfer options const uploadOptions = { blockSize: options === null || options === void 0 ? void 0 : options.uploadChunkSize, concurrency: options === null || options === void 0 ? void 0 : options.uploadConcurrency, - maxSingleShotSize: 128 * 1024 * 1024 // 128 MiB initial transfer size - // onProgress: uploadProgress.onProgress() + maxSingleShotSize: 128 * 1024 * 1024, + onProgress: uploadProgress.onProgress() }; try { uploadProgress.startDisplayTimer();