OK - after a few years without working with Collector, we've had a new need - so I'm having to recall how to set it all up again
Initially on Classic but now on the current version
The sync fails with Timeout message. However small an area is selected.
Nothing in the server logs
Lots of lines in the IIS log like
2019-08-28 09:25:32 10.100.200.73 POST /arcgis/rest/services/BaseMap/MapServer/exportTiles/jobs/jebd763605bde467ab2c1884ed398432c_et token=CAwn6mbR81poeh_gY6Imo7d3aN_vQ4YGauHigm_SBQa54HPnh 443 - 34.234.176.30 ArcGISRuntime-iOS/10.3.0+(iOS+12.3.1;+iPad4,2)+arcgis-collector/19.0.2+(26354975-2DEE-44DC-81B1-11E5A36760F9) http://www.arcgis.com 200 0 0 155
2019-08-28 09:25:32 10.100.200.73 POST /arcgis/rest/services/BaseMap/MapServer/exportTiles/jobs/jebd763605bde467ab2c1884ed398432c_et/results/out_service_url token=CAwn6mbR81poeh_gY6Imo7d3aN_vQ4YGauHigm_SBQa54HPnh 443 - 34.234.176.30 ArcGISRuntime-iOS/10.3.0+(iOS+12.3.1;+iPad4,2)+arcgis-collector/19.0.2+(26354975-2DEE-44DC-81B1-11E5A36760F9) http://www.arcgis.com 200 0 0 111
So the request is getting through to the server.
Server is 10.6.1 on a DMZ server that is pulling data from out LAN SQL servers.
A layers.tpk file is created in the server output folder that matches the requested area.
It looks like this tpk file isn't then being sent to the device.
Using the current version with logging on I get the final line in the log -
28/08/2019, 15:09 [FB892B7B-AFFF-4AB4-9629-1B48C85D0772] - job failed 28/08/2019, 15:09 [FB892B7B-AFFF-4AB4-9629-1B48C85D0772] - Error downloading map: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x281327660 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <F5A70B7C-F225-445F-92F3-3BF420C90712>.<1269>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <F5A70B7C-F225-445F-92F3-3BF420C90712>.<1269>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://maps.xxxx/arcgis/rest/directories/arcgisoutput/BaseMap2019_MapServer/_agsLMapCacheLC8FE?f=json, NSErrorFailingURLKey=https://maps.xxxx/arcgis/rest/directories/arcgisoutput/BaseMap2019_MapServer/_agsLMapCacheLC8FE?f=json, _kCFStreamErrorDomainKey=4} 28/08/2019, 15:09 [FB892B7B-AFFF-4AB4-9629-1B48C85D0772] - job failed
Any ideas?
Cheers
ACM
EDIT: A direct REST request for the tiles also works without any issue.
Solved! Go to Solution.
EDIT - this seemed to be an internal thing - our WiFi wasn't liking the URL - odd that the device was connecting direct to the server, rather than via AGOl, but got it sorted now
EDIT - this seemed to be an internal thing - our WiFi wasn't liking the URL - odd that the device was connecting direct to the server, rather than via AGOl, but got it sorted now