The error:
{"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool. Export Web Map Job ID: j56ff7247723a48e89f247ed4dfbb5d70"]}}
The scenario:
<serverUrl matchAll="true" url="https://my.webadaptor.com/portal/"
clientSecret="0dc210d467eat2me9e1a628767cec48b"
clientId="MetY25mamaH20GSm"
oauth2Endpoint="https://my.webadaptor.com/portal/sharing/oauth2/"/>
<serverUrl matchAll="true" url="https://their.remoteserver.com" username="TheirUsername" password="TheirPassword!"/>
urlUtils.addProxyRule({
urlPrefix: "https://their.remoteserver.com/",
proxyUrl: "my.webadaptor.com/dotnetproxy/proxy.ashx"
});
urlUtils.addProxyRule({
urlPrefix: "https://my.webadaptor.com/",
proxyUrl: "my.webadaptor.com/dotnetproxy/proxy.ashx"
});
The webmap is created using the usual arcgisUtils.createMap method. The print dijit is created using the method shown in the sample:
In fact, if I modify the code in the sandbox to consume my webmap and use my proxy, it successfully generatesthe print if I use the Esri-host print geopocessing service. If I use my locally-hosted print geoprocessing service, the print fails with the same error shown at the top.
So the question is, why can I not do this from my on-premise AGS + Portal?
TIA