File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,11 @@ function QiniuJsSDK() {
491
491
errTip = '文件验证失败。请稍后重试。' ;
492
492
break ;
493
493
case plupload . HTTP_ERROR :
494
+ if ( err . response === '' ) {
495
+ // Fix parseJSON error ,when http error is like net::ERR_ADDRESS_UNREACHABLE
496
+ errTip = err . message || '未知网络错误。' ;
497
+ break ;
498
+ }
494
499
var errorObj = that . parseJSON ( err . response ) ;
495
500
var errorText = errorObj . error ;
496
501
switch ( err . status ) {
Original file line number Diff line number Diff line change @@ -491,6 +491,11 @@ function QiniuJsSDK() {
491
491
errTip = '文件验证失败。请稍后重试。' ;
492
492
break ;
493
493
case plupload . HTTP_ERROR :
494
+ if ( err . response === '' ) {
495
+ // Fix parseJSON error ,when http error is like net::ERR_ADDRESS_UNREACHABLE
496
+ errTip = err . message || '未知网络错误。' ;
497
+ break ;
498
+ }
494
499
var errorObj = that . parseJSON ( err . response ) ;
495
500
var errorText = errorObj . error ;
496
501
switch ( err . status ) {
You can’t perform that action at this time.
0 commit comments