'Network changed error not caught by amplify error callback

 Storage.put(key, file, {
      resumable: true,
      
      completeCallback(eve) {
      },
      errorCallback: (err) => {
        
        console.error('Unexpected error while uploading', err);
    },
      progressCallback(prog) {
      }
    });

I want to handle this error but cannot find anyway to do that

xhr.js?b50d:187 PUT https://xyz.amazonaws.com/&x-id=UploadPart net::ERR_NETWORK_CHANGED

[ERROR] 59:15.420 axios-http-handler - Network Error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source