I am trying to add three layer with different capability in a map viewer. All layers were loading just fine. The other day serving the code again two layer are unable to load and getting image load error and internal server error.
let layer1 = new MapImageLayer({
//Public
url: "https://<domain-url>:6443/arcgis/rest/services/Governorates/<layer1>/MapServer"
});
map.add(layer1);
let layer2 = new FeatureLayer({
//Public
url: "https://<domain-url>:6443/arcgis/rest/services/Governorates/<layer2>/FeatureServer/0"
});
map.add(layer2);
urlUtils.addProxyRule({
urlPrefix: "https://<domain-url>:6443/arcgis/rest/services/Public/<layer3>/MapServer",
proxyUrl: "https://<app-hosting-url>/Proxy/proxy.ashx"
});
const layer3 = new FeatureLayer({
//Private
url: "https://<domain-url>:6443/arcgis/rest/services/Public/<layer3>/MapServer"
});
map.add(layer3);
Layer 1 and layer 3 are giving the following error
[esri.views.2d.layers.MapImageLayerView2D]
{name: 'mapimagelayer:image-fetch-error', details: {…}, message: 'Unable to load image: https://<domain-url>:6…st/services/Governorates/<layer1>/MapServer/export'}
While layer 2 is loading just fine. I restarted ArcGIS Server also an the problem went away momentarily but its happening again.