Hi all,
I'm encountering a sporadic issue with an ArcGIS Experience Builder (Developer Edition, version 1.17) application after deployment. ArcGIS Enterprise version 11.1
Localhost Behavior
When I run the app on localhost, it works perfectly every time — the OAuth login pop-up appears, credentials are acquired, and the map loads as expected.
Deployed Behavior
After deploying the app to a web server (tested on both Nginx and IIS), the application randomly fails during load. The ArcGIS login pop-up sometimes does not appear, and the following error is shown in the console:
Console Errors:
TypeError: Cannot read properties of null (reading 'trim')
at Module.w [as normalize] (init.js:116:221)
at k._sanitizeUrl (IdentityManager.js:35:388)
at k.findOAuthInfo (IdentityManager.js:13:222)
at registerOAuthInfo ...
at initToRegisterOAuthForMainPortalAndAGOL ...
Other related messages: