Arcgis Online Application template error

891
2
03-19-2014 02:42 PM
RaphaelLopes
New Contributor
Hi there,

We have download an application template from AGOL and hosted it in our server. We are using a public shared map we built in our account. We are getting the following javascript error:

"Error: User is not signed in.
    at Error (native)
    at q (http://js.arcgis.com/3.9/init.js:405:279)
    at d._doSignIn (http://js.arcgis.com/3.9/init.js:409:383)
    at d._enqueue (http://js.arcgis.com/3.9/init.js:400:420)
    at d.getCredential (http://js.arcgis.com/3.9/init.js:385:298)
    at d.checkSignInStatus (http://js.arcgis.com/3.9/init.js:388:531)
    at declare._initializeApplication (http://www.pplc.com.br/webapp/app/javascript/App.js:150:33)
    at declare._init (http://www.pplc.com.br/webapp/app/javascript/App.js:72:22)
    at declare.constructor (http://www.pplc.com.br/webapp/app/javascript/App.js:51:22)
    at new <anonymous> (http://js.arcgis.com/3.9/init.js:105:288)"

Can anyone help us on this one?
-
Thanks in advance,
Raphael.
Tags (2)
0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
That message is just an informational message and can be ignored. In the template we make a check to see if there is a logged-in user and if there isn't you'll see that message in the console. It shouldn't cause the application to fail.  Does your locally hosted template work other than that message in the console?
0 Kudos
DamianFoster
New Contributor
That message is just an informational message and can be ignored. In the template we make a check to see if there is a logged-in user and if there isn't you'll see that message in the console. It shouldn't cause the application to fail.  Does your locally hosted template work other than that message in the console?


Kelly,

I am having the exact same problem, our web application is failing when we use chrome and firefox.
The error message in chrome Unable to create map: "Cannot read property 'operationalLayers' of null". The error message in firefox Unable to create map: "_958 is null". But strange enough it works in IE. the service published on ArcGIS Online are all publicly shared too.

Additionally, i am getting a stack error ...

init.js line:188
m {stack: "Error: Unable to load http://www.arcgis.com/sharing...quest.g (http://js.arcgis.com/3.9/init.js:161:17)", message: "Unable to load http://www.arcgis.com/sharing/rest/...[WebMapId]?f=json status: 0", response: Object, status:0, responseText: ""...}
0 Kudos