Am getting the following error on log in. What could be the issue?
TypeError: Cannot read properties of undefined (reading 'then')
TypeError: Cannot read properties of undefined (reading 'then')
at http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:544810
at ls (http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:312664)
at Sl (http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:331553)
at t.unstable_runWithPriority (http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:420637)
at Bi (http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:274319)
at kl (http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:331310)
at http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:331221
at z (http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:419575)
at _.port1.onmessage (http://10.50.80.76/dhis-web-dashboard/static/js/main.3327e370.js:2:418331)
in nr
in $n
in On
in Bn
in rr
in lr
Thank you @dmaritim for the post! Would you please share more details about when this issue occurs?
What version of dhis2 are you using?
Does this happen to a user with ALL authority or specific users?
Is this in all dashboards or only a specific dashboard?
Say you login directly to the maintenance app, do you still see the issue? For example, if I go to https://play.dhis2.org/40.0.1/dhis-web-maintenance/index.html in where I’m not already logged in to the system and then I login, it will not take me to the dashboard app, it will take me to the maintenance app after I enter the login credentials.
Please go to the Data Administration app (using the same way suggested above) instanceURL/dhis-web-data-administration/index.html and then in maintenance, clear application cache and reload apps. Open again in Guest mode ( Browse Chrome as a guest - Computer - Google Chrome Help) , do you still see the issue?
If all the above doesn’t work, please share the complete Catalina.out log (without sensitive info). Thanks!