PrintTask "onError" is not working as expected

440
1
01-16-2013 03:46 PM
StephenLead
Regular Contributor III
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 Ta...

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
0 Kudos
1 Reply
MichaelParry
New Contributor II
Hi Steve,

Did you ever get a resolution to this? I'm having this exact problem and am resorting to hooking up a 3 minute setTimeout function to manually call the onError callback. Really don't want to see this code in production if I can avoid it.

Thanks,
Michael

P.S. Sorry if I got your hopes up that this might be a solution... 🙂
0 Kudos