AnsweredAssumed Answered

Error on init.js using custom Journal template with Portal

Question asked by webbiep on Jul 8, 2015
Latest reply on Jul 9, 2015 by GLAzou-esristaff

I created a secure map in Portal, shared it, made a Web Mapping Application using the Story Map Journal template, and downloaded the template. I extracted the files on a different web server and made the necessary config changes for Portal. I registered the app in Portal. When I try to view the app in the browser, it prompts for my login information using the ESRI authentication form as expected.

authform.JPG

When I submit my login info, it shows this on the page and never displays the story map:

mapjournal initializing.png

The JavaScript console shows the following error:

 

TypeError: Cannot read property '0' of undefined

    at http://myserver.com/myapp/app/viewer-min.js?v=1.1:1:162579

    at c (http://js.arcgis.com/3.11/init.js:76:221)

    at d (http://js.arcgis.com/3.11/init.js:76:10)

    at b.Deferred.resolve.callback (http://js.arcgis.com/3.11/init.js:77:350)

...

 

I suspect it may have to do with the DEFAULT_SHARING_URL. I had to guess at this value because I'm not an admin, but the one used in the code at least sees the Map Journal on the server (because other examples I tried immediately errored out), and it prompts me for my login. However, when I try to hit the DEFAULT_SHARING_URL in my web browser, it gives me an error "Invalid URL  Error: 400". So it partially works. Is there a permission or port that needs to be changed? Or is something else going on?

Outcomes