openhab-webui
openhab-webui copied to clipboard
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'locale')
The problem
When OH3 is started and some required bundle is not started correctly, main ui is all black a does not show anything (blank screen). The following error is reported on the browser console:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'locale')
at u.loadRootResource (app.js:38)
at Array.<anonymous> (app.js:17)
at u.dispatch (app.js:23)
at u.dispatch (app.js:17)
at app.js:33
Expected behavior
main ui should at least notify that OH3 has not started correctly, or that some required bundles from the OH3 distro did not start/could not be found.
Steps to reproduce
The problem is currently visible by using the latest openhab-distro.
(commit 491f6217d1bf6aadf11b111a2f91ba03b587fbc7)
When OH3 is launched, the following bundle fails to start:
org.apache.aries.jax.rs.whiteboard-2.0.1
then when loading main ui the page loads but is all black and no error message is shown.
Your environment
NOTE that env info could be obtained only removing the bundle that failed to start.
runtimeInfo:
version: 3.2.0
buildString: Unknown Build No.
locale: en-IT
systemInfo:
configFolder: xxxxxxxxxxxxxxxxx/openhab3/git/openhab-distro/launch/app/runtime/conf
userdataFolder: xxxxxxxxxxxxxxxxx/openhab3/git/openhab-distro/launch/app/runtime/userdata
logFolder: xxxxxxxxxxxxxxxxx/openhab3/git/openhab-distro/launch/app/runtime/userdata/logs
javaVersion: 11.0.11
javaVendor: Oracle Corporation
javaVendorVersion: "18.9"
osName: Windows 10
osVersion: "10.0"
osArchitecture: amd64
availableProcessors: 4
freeMemory: 243684272
totalMemory: 316669952
bindings: []
clientInfo:
device:
ios: false
android: false
androidChrome: false
desktop: true
iphone: false
ipod: false
ipad: false
edge: false
ie: false
firefox: false
macos: false
windows: true
cordova: false
phonegap: false
electron: false
nwjs: false
webView: false
webview: false
standalone: false
os: windows
pixelRatio: 1
prefersColorScheme: light
isSecureContext: true
locationbarVisible: true
menubarVisible: true
navigator:
cookieEnabled: true
deviceMemory: 8
hardwareConcurrency: 4
language: it
languages:
- it
- en-GB
- en
onLine: true
platform: Win32
screen:
width: 1920
height: 1080
colorDepth: 24
support:
touch: false
pointerEvents: true
observer: true
passiveListener: true
gestures: false
intersectionObserver: true
themeOptions:
dark: dark
filled: true
pageTransitionAnimation: default
bars: light
homeNavbar: default
homeBackground: default
expandableCardAnimation: default
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/95.0.4638.69 Safari/537.36
timestamp: 2021-11-13T00:12:04.676Z
Browser console
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'locale')
at u.loadRootResource (app.js:38)
at Array.<anonymous> (app.js:17)
at u.dispatch (app.js:23)
at u.dispatch (app.js:17)
at app.js:33
Browser network traffic
No request failed.
Same issue here...
Same issue on my machine after upgrading 3.1 to 3.3
I get a blank screen and cannot use OpenHAB