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() {
491491 errTip = '文件验证失败。请稍后重试。' ;
492492 break ;
493493 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+ }
494499 var errorObj = that . parseJSON ( err . response ) ;
495500 var errorText = errorObj . error ;
496501 switch ( err . status ) {
Original file line number Diff line number Diff line change @@ -491,6 +491,11 @@ function QiniuJsSDK() {
491491 errTip = '文件验证失败。请稍后重试。' ;
492492 break ;
493493 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+ }
494499 var errorObj = that . parseJSON ( err . response ) ;
495500 var errorText = errorObj . error ;
496501 switch ( err . status ) {
You can’t perform that action at this time.
0 commit comments