dojo reference problems

625
7
Jump to solution
09-27-2018 10:51 AM
JamesCrandall
MVP Frequent Contributor

I re-deployed a WAB created with Web AppBuilder Developer edition 2.7 and it will not open.  Only the loading spinner and it looks like the 403 errors for dojo resources?  Not sure if this is something getting blocked (by a system/environment change) or I’ve altered something in the WAB to cause this.

 

Looking at the requrest url I notice it’s doubling up on appst.sfwmd.gov for some reason?

 

Request URL:

https://somedomain.com//somedomain.com//jsapi/jsapi/dojo/resources/dojo.css

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

James,

  Is this app accessing secure map services?

View solution in original post

0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus

James,

   Have you made changes to the env.js?

JamesCrandall
MVP Frequent Contributor

No, no changes.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Can you attach the main config.json

0 Kudos
JamesCrandall
MVP Frequent Contributor

{
  "theme": {
    "name": "LaunchpadTheme",
    "styles": [
      "default",
      "style2",
      "style3"
    ],
    "version": "2.7",
    "sharedTheme": {
      "isPortalSupport": true,
      "useHeader": false,
      "useLogo": false
    }
  },
  "portalUrl": "http://ourorginzationaccount.arcgis.com",
  "appId": "NTXNURBVvcV1qjq3",
  "authorizedCrossOriginDomains": [],
  "title": "AVATAR GeoTool v1.3 - DEV",
  "subtitle": "SFWMD Geospatial Services",
  "keepAppState": true,
  "logo": "images/logo.png",
  "geometryService": "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",
  "links": [],
  "widgetOnScreen": {
    "widgets": [
      {
        "uri": "themes/LaunchpadTheme/widgets/AnchorBarController/Widget",
        "position": {
          "bottom": 10,
          "height": 40,
          "relativeTo": "map",
          "zIndex": 0
        },
        "version": "2.7",
        "id": "themes_LaunchpadTheme_widgets_AnchorBarController_Widget_20",
        "name": "AnchorBarController"
      },
      {
        "uri": "themes/LaunchpadTheme/widgets/Header/Widget",
        "position": {
          "left": 15,
          "top": 17,
          "width": 670,
          "height": 46,
          "relativeTo": "map"
        },
        "version": "2.7",
        "id": "themes_LaunchpadTheme_widgets_Header_Widget_21",
        "name": "Header"
      },
      {
        "uri": "widgets/Search/Widget",
        "position": {
          "left": 350,
          "top": 25,
          "width": 300,
          "zIndex": 1,
          "relativeTo": "map"
        },
        "version": "2.7",
        "id": "widgets_Search_Widget_22",
        "name": "Search",
        "config": "configs/Search/config_widgets_Search_Widget_22.json"
      },
      {
        "uri": "widgets/OverviewMap/Widget",
        "position": {
          "right": 20,
          "top": 20,
          "relativeTo": "map"
        },
        "version": "2.7",
        "id": "widgets_OverviewMap_Widget_23",
        "name": "OverviewMap"
      },
      {
        "uri": "widgets/ZoomSlider/Widget",
        "position": {
          "left": 25,
          "top": 95,
          "relativeTo": "map"
        },
        "version": "2.7",
        "id": "widgets_ZoomSlider_Widget_24",
        "name": "ZoomSlider"
      },
      {
        "uri": "widgets/HomeButton/Widget",
        "position": {
          "left": 25,
          "top": 175,
          "relativeTo": "map"
        },
        "id": "widgets_HomeButton_Widget_25",
        "name": "HomeButton",
        "version": "2.7"
      },
      {
        "uri": "widgets/MyLocation/Widget",
        "position": {
          "left": 25,
          "top": 215,
          "relativeTo": "map"
        },
        "version": "2.7",
        "id": "widgets_MyLocation_Widget_26",
        "name": "MyLocation"
      },
      {
        "uri": "",
        "version": "2.7",
        "position": {
          "right": 20,
          "bottom": 80,
          "relativeTo": "map"
        },
        "closeable": true,
        "id": "widgets_AttributeTable_Widget_27",
        "placeholderIndex": 1
      },
      {
        "uri": "widgets/Coordinate/Widget",
        "position": {
          "left": 20,
          "bottom": 60,
          "relativeTo": "map"
        },
        "id": "widgets_Coordinate_Widget_28",
        "name": "Coordinate",
        "version": "2.7",
        "config": "configs/Coordinate/config_widgets_Coordinate_Widget_28.json"
      },
      {
        "uri": "widgets/Scalebar/Widget",
        "position": {
          "left": 27,
          "bottom": 25,
          "relativeTo": "map"
        },
        "version": "2.7",
        "id": "widgets_Scalebar_Widget_29",
        "name": "Scalebar"
      },
      {
        "uri": "widgets/Splash/Widget",
        "visible": false,
        "position": {
          "relativeTo": "browser"
        },
        "version": "2.7",
        "id": "widgets_Splash_Widget_30",
        "name": "Splash"
      },
      {
        "position": {
          "right": 130,
          "top": 20,
          "relativeTo": "map"
        },
        "placeholderIndex": 2,
        "id": "_31"
      },
      {
        "position": {
          "right": 180,
          "top": 20,
          "relativeTo": "map"
        },
        "placeholderIndex": 3,
        "id": "_32"
      },
      {
        "position": {
          "right": 230,
          "top": 20,
          "relativeTo": "map"
        },
        "placeholderIndex": 4,
        "id": "_33"
      },
      {
        "uri": "widgets/ExtentNavigate/Widget",
        "visible": false,
        "position": {
          "top": 255,
          "left": 25,
          "relativeTo": "map"
        },
        "version": "2.7",
        "id": "widgets_ExtentNavigate_Widget_34",
        "name": "ExtentNavigate"
      },
      {
        "uri": "widgets/FullScreen/Widget",
        "visible": false,
        "position": {
          "right": 70,
          "top": 20,
          "relativeTo": "map"
        },
        "version": "2.7",
        "id": "widgets_FullScreen_Widget_35",
        "name": "FullScreen"
      }
    ],
    "panel": {
      "uri": "jimu/OnScreenWidgetPanel",
      "position": {
        "relativeTo": "map"
      }
    }
  },
  "map": {
    "3D": false,
    "2D": true,
    "position": {
      "left": 0,
      "top": 0,
      "right": 0,
      "bottom": 0
    },
    "itemId": "6105664672a240848db818762b861918",
    "mapOptions": {},
    "id": "map",
    "portalUrl": "http://ourorganizationaccount.arcgis.com",
    "mapRefreshInterval": {
      "useWebMapRefreshInterval": true
    }
  },
  "widgetPool": {
    "panel": {
      "uri": "themes/LaunchpadTheme/panels/LaunchpadPanel/Panel",
      "position": {
        "relativeTo": "map"
      }
    },
    "widgets": [
      {
        "name": "Avatar Tool Workplan",
        "version": "1.0",
        "uri": "widgets/Avatar Tool Workplan/Widget",
        "config": "configs/Avatar Tool Workplan/config_widgets_Avatar Tool Workplan_Widget_42.json",
        "index": 2,
        "id": "widgets_Avatar Tool Workplan_Widget_42"
      },
      {
        "name": "Avatar Tool Schedule",
        "version": "1.0",
        "uri": "widgets/Avatar Tool Schedule/Widget",
        "config": "configs/Avatar Tool Schedule/config_widgets_Avatar Tool Schedule_Widget_43.json",
        "index": 3,
        "id": "widgets_Avatar Tool Schedule_Widget_43"
      },
      {
        "name": "Avatar Tool DailyActivityLog",
        "version": "1.0",
        "uri": "widgets/Avatar Tool DailyActivityLog/Widget",
        "config": "configs/Avatar Tool DailyActivityLog/config_widgets_Avatar Tool DailyActivityLog_Widget_44.json",
        "index": 4,
        "id": "widgets_Avatar Tool DailyActivityLog_Widget_44"
      },
      {
        "name": "LayerList",
        "version": "2.7",
        "uri": "widgets/LayerList/Widget",
        "config": "configs/LayerList/config_widgets_LayerList_Widget_38.json",
        "index": 5,
        "id": "widgets_LayerList_Widget_38"
      },
      {
        "name": "BasemapGallery",
        "version": "2.7",
        "uri": "widgets/BasemapGallery/Widget",
        "config": "configs/BasemapGallery/config_widgets_BasemapGallery_Widget_39.json",
        "index": 6,
        "id": "widgets_BasemapGallery_Widget_39"
      },
      {
        "name": "AdvDraw",
        "version": "1.2",
        "uri": "widgets/AdvDraw/Widget",
        "config": "configs/AdvDraw/config_widgets_AdvDraw_Widget_41.json",
        "index": 7,
        "id": "widgets_AdvDraw_Widget_41"
      },
      {
        "name": "Print",
        "label": "PDF",
        "version": "2.7",
        "uri": "widgets/Print/Widget",
        "config": "configs/Print/config_widgets_Print_Widget_40.json",
        "index": 8,
        "id": "widgets_Print_Widget_40"
      },
      {
        "name": "AddData",
        "version": "2.7",
        "uri": "widgets/AddData/Widget",
        "config": "configs/AddData/config_widgets_AddData_Widget_45.json",
        "index": 9,
        "id": "widgets_AddData_Widget_45"
      }
    ],
    "groups": []
  },
  "mobileLayout": {
    "widgetOnScreen": {
      "widgets": [
        {
          "uri": "themes/LaunchpadTheme/widgets/AnchorBarController/Widget",
          "position": {
            "bottom": 0,
            "height": 40,
            "width": "100%",
            "zIndex": 0,
            "relativeTo": "map"
          },
          "version": "2.7"
        },
        {
          "uri": "themes/LaunchpadTheme/widgets/Header/Widget",
          "position": {
            "left": 0,
            "right": 0,
            "top": 0,
            "height": 46,
            "relativeTo": "map"
          },
          "version": "2.7"
        },
        {
          "uri": "widgets/Search/Widget",
          "position": {
            "left": 10,
            "top": 10,
            "right": 10,
            "zIndex": 0,
            "relativeTo": "map"
          },
          "version": "2.7"
        },
        {
          "uri": "widgets/OverviewMap/Widget",
          "position": {
            "right": 20,
            "top": 20
          },
          "version": "2.7"
        },
        {
          "uri": "widgets/ZoomSlider/Widget",
          "position": {
            "right": 10,
            "bottom": 160,
            "relativeTo": "map"
          },
          "version": "2.7"
        },
        {
          "uri": "widgets/HomeButton/Widget",
          "position": {
            "right": 10,
            "bottom": 75,
            "relativeTo": "map"
          }
        },
        {
          "uri": "widgets/MyLocation/Widget",
          "inPanel": false,
          "position": {
            "right": 10,
            "bottom": 115,
            "relativeTo": "map"
          },
          "version": "2.7"
        },
        {
          "uri": "widgets/AttributeTable/Widget",
          "version": "2.7",
          "position": {
            "left": 10,
            "bottom": 70,
            "relativeTo": "map"
          },
          "closeable": true
        },
        {
          "uri": "widgets/Coordinate/Widget",
          "position": {
            "left": 20,
            "bottom": 60
          }
        },
        {
          "uri": "widgets/Scalebar/Widget",
          "position": {
            "left": 50,
            "bottom": 70,
            "relativeTo": "map"
          },
          "version": "2.7"
        },
        {
          "uri": "widgets/Splash/Widget",
          "visible": false,
          "position": {
            "relativeTo": "browser"
          },
          "version": "2.7"
        },
        {
          "position": {
            "left": 10,
            "bottom": 195,
            "relativeTo": "map"
          }
        },
        {
          "position": {
            "left": 10,
            "bottom": 155,
            "relativeTo": "map"
          }
        },
        {
          "position": {
            "left": 10,
            "bottom": 115,
            "relativeTo": "map"
          }
        },
        {
          "uri": "widgets/ExtentNavigate/Widget",
          "visible": false,
          "position": {
            "right": 10,
            "bottom": 238,
            "relativeTo": "map"
          },
          "version": "2.7"
        },
        {
          "uri": "widgets/FullScreen/Widget",
          "visible": false,
          "position": {
            "right": 70,
            "top": 20
          },
          "version": "2.7"
        }
      ]
    },
    "map": {
      "position": {
        "left": 0,
        "top": 0,
        "right": 0,
        "bottom": 0
      }
    },
    "widgetPool": {
      "panel": {
        "uri": "themes/LaunchpadTheme/panels/LaunchpadPanel/Panel"
      }
    }
  },
  "loadingPage": {
    "backgroundColor": "#508dca",
    "backgroundImage": {
      "visible": false
    },
    "loadingGif": {
      "visible": true,
      "uri": "configs/loading/images/predefined_loading_1.gif",
      "width": 58,
      "height": 29
    }
  },
  "wabVersion": "2.7",
  "isTemplateApp": true,
  "isWebTier": false,
  "httpProxy": {
    "useProxy": false,
    "alwaysUseProxy": false,
    "url": "https://somepathtotheproxy/proxy.jsp",
    "rules": [
      {
        "urlPrefix": "somepathtotheservice/FeatureServer/",
        "proxyUrl": "https://somepathtotheproxy/proxy.jsp"
      }
    ]
  },
  "dataSource": {
    "dataSources": {},
    "settings": {}
  },
  "logoLink": ""
}

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

James,

  Is this app accessing secure map services?

0 Kudos
JamesCrandall
MVP Frequent Contributor

yes, thru a proxy.

Also, I just looked at the config.json file of the deployed app and noticed that the proxy info was stripped out.  I've replaced it back in and will retest.

0 Kudos
JamesCrandall
MVP Frequent Contributor

I'm marking your answer as correct because it made me go back into the config.json to review it, which I determined that the proxy details were missing.  This is similar to what happens with the appId attribute as well I think and must be manually re-added when exporting from WAB Developer prior to deployment.

Thanks!