How to properly set esriConfig.portalUrl ?

04-14-2020 09:28 AM
New Contributor III


started with ArcGIS API for JS only today and am having issues loading scenes from a public portal already. If I use an ID from a public AGOL portal item, my scene shows as intended. If I change to an on-premises portal url with esriConfi.portalURL, nothing appears at all.

], function(esriConfig, WebScene, SceneView) {

// Set the hostname to the on-premises portal
esriConfig.portalUrl = "";

var webscene = new WebScene({
portalItem: {
id: "2694728cac174fcb8622f5c472f689fe"

var view = new SceneView({
container: "viewDiv",
map: webscene


Any idea what's missing? Also what platform would you suggest for debugging? The ArcGIS API for JavaScript Sandbox doesn't show anything... (also is here on the community forum a proper way to post code like on stackoverflow?)


1 Reply
New Contributor III

Have you checked your browser's developer tools to capture the traffic when you try to load the scene?

0 Kudos