Open DeveloperBeginner opened 4 years ago
I observed the issue during file download today and have captured the Exception logs as follows. File upload is however working well.
com.microsoft.azure.storage.StorageException: isConnected failed: ETIMEDOUT (Connection timed out)
com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry ExecutionEngine.java:206
com.microsoft.azure.storage.blob.CloudBlob.exists CloudBlob.java:1831
com.microsoft.azure.storage.blob.CloudBlob.exists CloudBlob.java:1818
com.microsoft.azure.storage.blob.CloudBlob.exists CloudBlob.java:1793
com.xxxxxxx.xxxxxxx.FileDownloadTask.download FileDownloadTask.java:98
com.xxxxxxx.xxxxxxx.FileDownloadTask.run FileDownloadTask.java:76
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java:1113
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java:588
java.lang.Thread.run Thread.java:818
A small code snippet of my class FileDownloadTask is as follows
CloudBlockBlob blob;
if (!TextUtils.isEmpty(mBlobDirectoryReference)) {
blob = container.getDirectoryReference(mBlobDirectoryReference).
getBlockBlobReference(mBlobReference);
} else {
blob = container.getBlockBlobReference(mBlobReference);
}
if (blob.exists()) { //line number 98 in FileDownloadTask
...
}
So the exception is seen for the line
if (blob.exists())
When do we see this exception? My device has internet connectivity. The blob directory and file referred to also exists and is valid.
Hi Team,
@emgerner-msft @esummers-msft @bryant1410 @asorrin-msft @pemari-msft @dadoonet @m-moris
Any updates on this issue?
@nishanthvasu Why are you pinging me on an issue I'm not involved in?
Hi @dadoonet ,
I am just trying to reach to all contributors to get any update on this issue, since its been open for long time and blocking to download files using this SDK in production. I am not aware that you were not a part of this.
Which service(blob, file, queue, table) does this issue concern?
Issue with blob and file
Which version of the SDK was used?
OS and version used: Android 6.0.1
Java runtime used: 1.8.0
SDK version used: IoT Device client 1.19.0
What problem was encountered?
I am using the iot device client sdk in my Android application. Two of the many devices in the client location are not able to download files from blob storage. I only have the first few characters of the error logs:
File uploads are also failing in these devices. Unfortunately I do not have the error logs.
However, I noticed that device telemetry events are successfully sent from these two devices.
Please help me find out under which conditions file upload/download fails with this error message. Also help me find a solution to this issue.
Code sample exhibiting the issue:
Gradle file:
File upload :
File download: