Select to view content in your preferred language

Getting a timeout when downloading large maps using OfflineMapJob

577
3
01-05-2024 12:12 AM
padmalcom
Frequent Contributor

Hi, we follow your tutorial here to download maps:

https://github.com/Esri/arcgis-maps-sdk-kotlin-samples/blob/main/generate-offline-map/src/main/java/...

When we define a large map (~1,9GB) we get a timeout after a certain time. Is there a way to allow a higher timeout using the SDK?

0 Kudos
3 Replies
MikeWilburn
Esri Contributor

Can you share which timeout exception you're receiving? Our API doesn't allow configuring a longer timeout, but knowing which type of timeout is being hit will help to narrow down how it can be resolved.

0 Kudos
padmalcom
Frequent Contributor

Hi @MikeWilburn ,

the timeout happens here when querying result() from the GenerateOfflineMapJob instance. result() calls onFailure and it.message simply contains the string "timeout".

offlineMapJob.result().onSuccess {
Timber.d("Map download finished successfully.")
return Result.success()
}.onFailure {
return handleFailure("Map download failed with message ${it.message}.")
}
0 Kudos
GuntherHeppner
Esri Contributor

Hi @padmalcom ,

What's the type of the exception (it) passed by `onFailure`?

0 Kudos