stevel

PrintTask "onError" is not working as expected

Discussion created by stevel on Jan 16, 2013
Latest reply on Apr 10, 2013 by daffodil41
See the attached sample, which loads a simple map with a tiled layer and attempts to run a printTask using a sample Esri server at http://servicesbeta4.esri.com/arcgis/rest/services/Utilities/ExportWebMap/GPServer/Export Web Map Task

printTask.execute(params, printResult, printError);


If you watch in FireBug, this immediately returns an error message:

NetworkError: 503 Service Unavailable... server is at capacity
However, the printError function doesn't seem to fire, and doesn't contain the message about the server being unavailable/at capacity.

EDIT: it does correctly return an error response if I point it to another print server which exists but is switched off.

Thanks,
Steve

Attachments

Outcomes