We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea07ae6 commit fdc48eeCopy full SHA for fdc48ee
src/progressive-video-uploader.ts
@@ -151,8 +151,8 @@ export class ProgressiveUploader {
151
response = await doUpload(thisPart);
152
resolve(response);
153
return;
154
- } catch (e) {
155
- if(retriesCount >= this.retries) {
+ } catch (e: any) {
+ if(e.status !== 401 && retriesCount >= this.retries) {
156
reject(e);
157
158
}
src/video-uploader.ts
@@ -102,8 +102,8 @@ export class VideoUploader {
102
this.videoId = response.videoId;
103
this.currentChunk++;
104
105
106
- if (retriesCount >= this.retries) {
+ if (e.status === 401 || retriesCount >= this.retries) {
107
108
109
0 commit comments