ArcGISWebException: Error code '500'

10195
26
05-18-2015 05:55 AM
JonathanBrickey
New Contributor

I am intermittently getting the following exception an a ExportTileCacheTask.EstimateTileCacheSizeAsync call: Esri.ArcGISRuntime.Http.ArcGISWebException: Error code '500' : 'Error getting status for job j76e0602d072e405eba12b24b7bba75b2 on Export Cache'

The ExportTileCacheTask.EstimateTileCacheSizeAsync call had been working without error until late last week.  There is not a lot of documentation on ArcGISWebException error codes but I am assuming internal server error.  Does anyone have any idea what may be causing this? 

Thanks,

Jonathan

Full stack trace:

Esri.ArcGISRuntime.Http.ArcGISWebException: Error code '500' : 'Error getting status for job j76e0602d072e405eba12b24b7bba75b2 on Export Cache'

   at Esri.ArcGISRuntime.Http.ArcGISHttpClientHandler.ArcGISClientHandlerInternal.<SendAsync>d__2.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

   at Esri.ArcGISRuntime.Tasks.Geoprocessing.Geoprocessor.<CheckJobStatusInternal>d__14.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()

   at Esri.ArcGISRuntime.Tasks.Offline.ExportTileCacheTask.<checkTileCacheJobStatus>d__6e.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

   at Esri.ArcGISRuntime.Tasks.Offline.ExportTileCacheTask.<CheckEstimateTileCacheSizeJobStatusAsync>d__32.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

   at Esri.ArcGISRuntime.Tasks.Offline.ExportTileCacheTask.<checkTileCacheJobUntilCompletion>d__7d.MoveNext()

0 Kudos
26 Replies
JonathanBrickey
New Contributor

Confirmed the error is still occurring.

0 Kudos
PeterRoss1
New Contributor

Happening still. I worked around the issue by capturing the error and just re-trying (spamming the server) until it's successful. It's not pretty but it seems to work. After working with ESRI tech support it appears the issue is in the .Net API not on the server though. If we capture the request that causes the problem in fiddler and use it to manually request it from the rest endpoint it works without the 500

0 Kudos
PeterRoss1
New Contributor

...but then again, thinking about it, that could have just been the erratic nature of the errors that caused fiddler to work and the api not. I did only try once with the manual method.

0 Kudos
JonathanBrickey
New Contributor

This issue seems to be resolved.  Can I get an official response verifying this?

0 Kudos
GeirOvsttun
New Contributor

Looks like it

Best regards

Geir Øvsttun M.Sc

Principal Information Architect

Life Cycle Management

DNV GL - Maritime Advisory

E-mail geir.ovsttun@dnvgl.com<mailto:geir.ovsttun@dnvgl.com>

Mobile +47 452 49 453

www.dnvgl.com<http://www.dnvgl.com/>

<http://www.dnvgl.com/>

0 Kudos
AnttiKajanus1
Occasional Contributor III

We got confirmation from the online/content team that they made changes to fix this issue. Please let us know if you see the issue being resurfaced.

0 Kudos
TomRippetoe
Occasional Contributor

We are getting the same error response - sometimes - when using the .NET runtime version 10.2.7 to export a tile cache that is served up behind a corporate fire wall.  We haven't really been able to decipher a pattern, other than once it starts happening the regularity of the error response seems to be more frequent. Our ArcGIS Server logs show a 'Severe' entry coinciding with the error response returned to the runtime. The AGS log entry reads something like 'Error getting status for job xxxxxx on Export Cache JSONObject["value"] not found'.

Can you share what changes were made by the content team that fixed the issue when using the https://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Street_Map/MapServer  service?

0 Kudos