I am using the TransferManager to upload some files on my server to S3 asynchronously. The problem is that it is failing for an unknown reason and I am not seeing any exceptions in the logs.
I see a comment in the documentation for seeing the exception when the transfer fails. The problem is that this requires blocking the thread.
// Or you can block the current thread and wait for your transfer to
// to complete. If the transfer fails, this method will throw an
// AmazonClientException or AmazonServiceException detailing the reason.
myUpload.waitForCompletion();
I've tried using the ProgressListener, but that seems to only notify me when the transfer fails. I don't see any exceptions thrown.
Is there a way to view these exceptions without blocking?
Aucun commentaire:
Enregistrer un commentaire