Troubleshoot

pull/1495/head
Bassem Dghaidi 5 months ago committed by GitHub
parent bf08ee6b81
commit fbbd57a122

@ -9838,7 +9838,7 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
maxSingleShotSize: 128 * 1024 * 1024, maxSingleShotSize: 128 * 1024 * 1024,
onProgress: uploadProgress.onProgress() onProgress: uploadProgress.onProgress()
}; };
try { // try {
uploadProgress.startDisplayTimer(); uploadProgress.startDisplayTimer();
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
@ -9847,14 +9847,6 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`);
} }
return response; return response;
}
catch (error) {
core.debug(`Error uploading cache archive: ${error}`);
throw error;
}
finally {
uploadProgress.stopDisplayTimer();
}
}); });
} }
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK; exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;

@ -9838,7 +9838,7 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
maxSingleShotSize: 128 * 1024 * 1024, maxSingleShotSize: 128 * 1024 * 1024,
onProgress: uploadProgress.onProgress() onProgress: uploadProgress.onProgress()
}; };
try { // try {
uploadProgress.startDisplayTimer(); uploadProgress.startDisplayTimer();
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
@ -9847,14 +9847,6 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`);
} }
return response; return response;
}
catch (error) {
core.debug(`Error uploading cache archive: ${error}`);
throw error;
}
finally {
uploadProgress.stopDisplayTimer();
}
}); });
} }
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK; exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;

@ -9838,7 +9838,7 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
maxSingleShotSize: 128 * 1024 * 1024, maxSingleShotSize: 128 * 1024 * 1024,
onProgress: uploadProgress.onProgress() onProgress: uploadProgress.onProgress()
}; };
try { // try {
uploadProgress.startDisplayTimer(); uploadProgress.startDisplayTimer();
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
@ -9847,14 +9847,6 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`);
} }
return response; return response;
}
catch (error) {
core.debug(`Error uploading cache archive: ${error}`);
throw error;
}
finally {
uploadProgress.stopDisplayTimer();
}
}); });
} }
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK; exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;

10
dist/save/index.js vendored

@ -9838,7 +9838,7 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
maxSingleShotSize: 128 * 1024 * 1024, maxSingleShotSize: 128 * 1024 * 1024,
onProgress: uploadProgress.onProgress() onProgress: uploadProgress.onProgress()
}; };
try { // try {
uploadProgress.startDisplayTimer(); uploadProgress.startDisplayTimer();
core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`); core.debug(`BlobClient: ${blobClient.name}:${blobClient.accountName}:${blobClient.containerName}`);
const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions); const response = yield blockBlobClient.uploadFile(archivePath, uploadOptions);
@ -9847,14 +9847,6 @@ function uploadCacheArchiveSDK(signedUploadURL, archivePath, options) {
throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`); throw new errors_1.InvalidResponseError(`Upload failed with status code ${response._response.status}`);
} }
return response; return response;
}
catch (error) {
core.debug(`Error uploading cache archive: ${error}`);
throw error;
}
finally {
uploadProgress.stopDisplayTimer();
}
}); });
} }
exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK; exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK;

Loading…
Cancel
Save