Error on Mobile Client: Can not read property firstChild of null

We have since around 3 days a persistent issue in one of our private channels.

I already tried to delete all messages in there via the API. This solves the issue temporary but when new messages appear the issue comes back. Also I cleared the app cache and tried logout and new login.

App Version: 2.21.0 (Build 565)
Server Version: 10.1.1 (Build 11162711545
Datenbank: postgres
Version des Datenbankschemas: 127

Issue is there just on Mobile Clients but on Android and iOS for multiple users

Crash log from the app is:

Extract from the crash log from the app is:

024/10/22 21:35:35:191 WARNING Handling Javascript error error on fetchChannelBookmarks 0
2024/10/22 21:35:35:191 ERROR error on fetchChannelBookmarks Response with status code 501
2024/10/22 21:35:35:204 INFO Running "Channel
2024/10/22 21:35:35:328 DEBUG Performance metric: {
metric = “mobile_channel_switch”;
timestamp = 1729625735325;
value = “216.1890408992767”;
}
2024/10/22 21:35:35:465 WARNING Handling Javascript error TypeError: Cannot read property ‘firstChild’ of null

This error is located at:
in Markdown
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RCTScrollContentView
in RCTScrollView
in ScrollView
in ScrollView
in RCTView
in Unknown
in AnimatedComponent(View)
in Unknown
in Message
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in Body
in RCTView
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in TouchableHighlight
in Unknown
in RCTView
in Unknown
in Post
in ConcreteWithObservablesComponent
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in VirtualizedListCellContextProvider
in CellRenderer
in RCTScrollContentView
in RCTScrollView
in ScrollView
in ScrollView
in VirtualizedListContextProvider
in VirtualizedList
in FlatList
in AnimatedComponent(FlatList)
in Unknown
in PostList
in ConcreteWithObservablesComponent
in ConcreteWithObservablesComponent
in Unknown
in RNCSafeAreaView
in Unknown
in ChannelPostList
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RNCSafeAreaView
in Unknown
in RCTView
in Unknown
in Suspender
in Suspense
in Freeze
in FreezeScreen
in Channel
in ConcreteWithObservablesComponent
in ServerUrlComponent
in Unknown
in ThemeProvider
in ConcreteWithObservablesComponent
in ServerUrlProvider
in IntlProvider
in UserLocaleProvider
in ConcreteWithObservablesComponent
in DeviceInfoProvider
in DatabaseProvider
in ServerDatabaseComponent
in Provider
in EmmProvider
in RNCSafeAreaProvider
in SafeAreaProvider
in SafeAreaInsets
in RCTView
in Unknown
in GestureHandlerRootView
in gestureHoc
in WrappedComponent
in RCTView
in Unknown
in AppContainer, js engine: hermes 0
2024/10/22 21:35:35:465 ERROR TypeError: Cannot read property ‘firstChild’ of null

This error is located at:
in Markdown
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RCTScrollContentView
in RCTScrollView
in ScrollView
in ScrollView
in RCTView
in Unknown
in AnimatedComponent(View)
in Unknown
in Message
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in Body
in RCTView
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in TouchableHighlight
in Unknown
in RCTView
in Unknown
in Post
in ConcreteWithObservablesComponent
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in VirtualizedListCellContextProvider
in CellRenderer
in RCTScrollContentView
in RCTScrollView
in ScrollView
in ScrollView
in VirtualizedListContextProvider
in VirtualizedList
in FlatList
in AnimatedComponent(FlatList)
in Unknown
in PostList
in ConcreteWithObservablesComponent
in ConcreteWithObservablesComponent
in Unknown
in RNCSafeAreaView
in Unknown
in ChannelPostList
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RNCSafeAreaView
in Unknown
in RCTView
in Unknown
in Suspender
in Suspense
in Freeze
in FreezeScreen
in Channel
in ConcreteWithObservablesComponent
in ServerUrlComponent
in Unknown
in ThemeProvider
in ConcreteWithObservablesComponent
in ServerUrlProvider
in IntlProvider
in UserLocaleProvider
in ConcreteWithObservablesComponent
in DeviceInfoProvider
in DatabaseProvider
in ServerDatabaseComponent
in Provider
in EmmProvider
in RNCSafeAreaProvider
in SafeAreaProvider
in SafeAreaInsets
in RCTView
in Unknown
in GestureHandlerRootView
in gestureHoc
in WrappedComponent
in RCTView
in Unknown
in AppContainer, js engine: hermes
2024/10/22 21:35:35:478 WARNING Handling Javascript error {
componentStack = “\n in Markdown\n in ConcreteWithObservablesComponent\n in Unknown\n in RCTView\n in Unknown\n in RCTScrollContentView\n in RCTScrollView\n in ScrollView\n in ScrollView\n in RCTView\n in Unknown\n in AnimatedComponent(View)\n in Unknown\n in Message\n in ConcreteWithObservablesComponent\n in Unknown\n in RCTView\n in Unknown\n in RCTView\n in Unknown\n in Body\n in RCTView\n in Unknown\n in RCTView\n in Unknown\n in RCTView\n in Unknown\n in TouchableHighlight\n in Unknown\n in RCTView\n in Unknown\n in Post\n in ConcreteWithObservablesComponent\n in ConcreteWithObservablesComponent\n in Unknown\n in RCTView\n in Unknown\n in VirtualizedListCellContextProvider\n in CellRenderer\n in RCTScrollContentView\n in RCTScrollView\n in ScrollView\n in ScrollView\n in VirtualizedListContextProvider\n in VirtualizedList\n in FlatList\n in AnimatedComponent(FlatList)\n in Unknown\n in PostList\n in ConcreteWithObservablesComponent\n in ConcreteWithObservablesComponent\n in Unknown\n in RNCSafeAreaView\n in Unknown\n in ChannelPostList\n in ConcreteWithObservablesComponent\n in Unknown\n in RCTView\n in Unknown\n in RNCSafeAreaView\n in Unknown\n in RCTView\n in Unknown\n in Suspender\n in Suspense\n in Freeze\n in FreezeScreen\n in Channel\n in ConcreteWithObservablesComponent\n in ServerUrlComponent\n in Unknown\n in ThemeProvider\n in ConcreteWithObservablesComponent\n in ServerUrlProvider\n in IntlProvider\n in UserLocaleProvider\n in ConcreteWithObservablesComponent\n in DeviceInfoProvider\n in DatabaseProvider\n in ServerDatabaseComponent\n in Provider\n in EmmProvider\n in RNCSafeAreaProvider\n in SafeAreaProvider\n in SafeAreaInsets\n in RCTView\n in Unknown\n in GestureHandlerRootView\n in gestureHoc\n in WrappedComponent\n in RCTView\n in Unknown\n in AppContainer”;
isComponentError = 1;
jsEngine = hermes;
} 1
2024/10/22 21:35:43:111 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:35:43:134 DEBUG error on sendPerformanceReport Received invalid response from the server.; Response could not be serialized, input data was nil or zero length.
2024/10/22 21:38:22:375 INFO Launch app in Home screen
2024/10/22 21:38:22:375 INFO websocket connecting to wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0
2024/10/22 21:38:22:407 INFO Running "Home
2024/10/22 21:38:22:632 DEBUG Performance metric: {
metric = “mobile_load”;
timestamp = 1729625902629;
value = “827.4562079906464”;
}
2024/10/22 21:38:22:641 INFO websocket connected to wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0
2024/10/22 21:38:22:642 INFO wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0 got connection id qrbrs799wbbame6fgrwy1nj9fc
2024/10/22 21:38:22:642 INFO wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0 got the expected new connection id
2024/10/22 21:38:22:917 INFO WEBSOCKET RECONNECT MODELS BATCHING TOOK 17ms
2024/10/22 21:38:23:328 DEBUG error on fetchBindings Received invalid response from the server.; JSON could not be serialized because of error:
Die Daten konnten nicht gelesen werden, da sie nicht das korrekte Format haben.
2024/10/22 21:38:26:788 INFO channel switch to E-Mail Bote 5h6bizpecjn8tksy18e8fgcxww 70 ms
2024/10/22 21:38:26:789 WARNING Handling Javascript error error on fetchChannelBookmarks 0
2024/10/22 21:38:26:789 ERROR error on fetchChannelBookmarks Response with status code 501
2024/10/22 21:38:26:800 INFO Running "Channel
2024/10/22 21:38:26:892 DEBUG Performance metric: {
metric = “mobile_channel_switch”;
timestamp = 1729625906887;
value = “172.7870419025421”;
}
2024/10/22 21:38:35:399 INFO channel switch to Emails an IdM o46w3jdi93rhxmfpm1on5cg5fa 71 ms
2024/10/22 21:38:35:399 WARNING Handling Javascript error error on fetchChannelBookmarks 0
2024/10/22 21:38:35:399 ERROR error on fetchChannelBookmarks Response with status code 501
2024/10/22 21:38:35:409 INFO Running "Channel
2024/10/22 21:38:42:167 INFO channel switch to Emails an Ilarp dhc6xrgqej8fzyojufngtd4jtw 68 ms
2024/10/22 21:38:42:168 WARNING Handling Javascript error error on fetchChannelBookmarks 0
2024/10/22 21:38:42:168 ERROR error on fetchChannelBookmarks Response with status code 501
2024/10/22 21:38:42:176 INFO Running "Channel
2024/10/22 21:38:42:252 WARNING Handling Javascript error TypeError: Cannot read property ‘firstChild’ of null

This error is located at:
in Markdown
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RCTScrollContentView
in RCTScrollView
in ScrollView
in ScrollView
in RCTView
in Unknown
in AnimatedComponent(View)
in Unknown
in Message
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in Body
in RCTView
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in TouchableHighlight
in Unknown
in RCTView
in Unknown
in Post
in ConcreteWithObservablesComponent
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in VirtualizedListCellContextProvider
in CellRenderer
in RCTScrollContentView
in RCTScrollView
in ScrollView
in ScrollView
in VirtualizedListContextProvider
in VirtualizedList
in FlatList
in AnimatedComponent(FlatList)
in Unknown
in PostList
in ConcreteWithObservablesComponent
in ConcreteWithObservablesComponent
in Unknown
in RNCSafeAreaView
in Unknown
in ChannelPostList
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RNCSafeAreaView
in Unknown
in RCTView
in Unknown
in Suspender
in Suspense
in Freeze
in FreezeScreen
in Channel
in ConcreteWithObservablesComponent
in ServerUrlComponent
in Unknown
in ThemeProvider
in ConcreteWithObservablesComponent
in ServerUrlProvider
in IntlProvider
in UserLocaleProvider
in ConcreteWithObservablesComponent
in DeviceInfoProvider
in DatabaseProvider
in ServerDatabaseComponent
in Provider
in EmmProvider
in RNCSafeAreaProvider
in SafeAreaProvider
in SafeAreaInsets
in RCTView
in Unknown
in GestureHandlerRootView
in gestureHoc
in WrappedComponent
in RCTView
in Unknown
in AppContainer, js engine: hermes 0
2024/10/22 21:38:42:252 ERROR TypeError: Cannot read property ‘firstChild’ of null

This error is located at:
in Markdown
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RCTScrollContentView
in RCTScrollView
in ScrollView
in ScrollView
in RCTView
in Unknown
in AnimatedComponent(View)
in Unknown
in Message
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in Body
in RCTView
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in TouchableHighlight
in Unknown
in RCTView
in Unknown
in Post
in ConcreteWithObservablesComponent
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in VirtualizedListCellContextProvider
in CellRenderer
in RCTScrollContentView
in RCTScrollView
in ScrollView
in ScrollView
in VirtualizedListContextProvider
in VirtualizedList
in FlatList
in AnimatedComponent(FlatList)
in Unknown
in PostList
in ConcreteWithObservablesComponent
in ConcreteWithObservablesComponent
in Unknown
in RNCSafeAreaView
in Unknown
in ChannelPostList
in ConcreteWithObservablesComponent
in Unknown
in RCTView
in Unknown
in RNCSafeAreaView
in Unknown
in RCTView
in Unknown
in Suspender
in Suspense
in Freeze
in FreezeScreen
in Channel
in ConcreteWithObservablesComponent
in ServerUrlComponent
in Unknown
in ThemeProvider
in ConcreteWithObservablesComponent
in ServerUrlProvider
in IntlProvider
in UserLocaleProvider
in ConcreteWithObservablesComponent
in DeviceInfoProvider
in DatabaseProvider
in ServerDatabaseComponent
in Provider
in EmmProvider
in RNCSafeAreaProvider
in SafeAreaProvider
in SafeAreaInsets
in RCTView
in Unknown
in GestureHandlerRootView
in gestureHoc
in WrappedComponent
in RCTView
in Unknown
in AppContainer, js engine: hermes
2024/10/22 21:38:42:262 WARNING Handling Javascript error {
componentStack = “\n in Markdown\n in ConcreteWithObservablesComponent\n in Unknown\n in RCTView\n in Unknown\n in RCTScrollContentView\n in RCTScrollView\n in ScrollView\n in ScrollView\n in RCTView\n in Unknown\n in AnimatedComponent(View)\n in Unknown\n in Message\n in ConcreteWithObservablesComponent\n in Unknown\n in RCTView\n in Unknown\n in RCTView\n in Unknown\n in Body\n in RCTView\n in Unknown\n in RCTView\n in Unknown\n in RCTView\n in Unknown\n in TouchableHighlight\n in Unknown\n in RCTView\n in Unknown\n in Post\n in ConcreteWithObservablesComponent\n in ConcreteWithObservablesComponent\n in Unknown\n in RCTView\n in Unknown\n in VirtualizedListCellContextProvider\n in CellRenderer\n in RCTScrollContentView\n in RCTScrollView\n in ScrollView\n in ScrollView\n in VirtualizedListContextProvider\n in VirtualizedList\n in FlatList\n in AnimatedComponent(FlatList)\n in Unknown\n in PostList\n in ConcreteWithObservablesComponent\n in ConcreteWithObservablesComponent\n in Unknown\n in RNCSafeAreaView\n in Unknown\n in ChannelPostList\n in ConcreteWithObservablesComponent\n in Unknown\n in RCTView\n in Unknown\n in RNCSafeAreaView\n in Unknown\n in RCTView\n in Unknown\n in Suspender\n in Suspense\n in Freeze\n in FreezeScreen\n in Channel\n in ConcreteWithObservablesComponent\n in ServerUrlComponent\n in Unknown\n in ThemeProvider\n in ConcreteWithObservablesComponent\n in ServerUrlProvider\n in IntlProvider\n in UserLocaleProvider\n in ConcreteWithObservablesComponent\n in DeviceInfoProvider\n in DatabaseProvider\n in ServerDatabaseComponent\n in Provider\n in EmmProvider\n in RNCSafeAreaProvider\n in SafeAreaProvider\n in SafeAreaInsets\n in RCTView\n in Unknown\n in GestureHandlerRootView\n in gestureHoc\n in WrappedComponent\n in RCTView\n in Unknown\n in AppContainer”;
isComponentError = 1;
jsEngine = hermes;
} 1
2024/10/22 21:39:01:301 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:39:01:329 DEBUG error on sendPerformanceReport Received invalid response from the server.; Response could not be serialized, input data was nil or zero length.
2024/10/22 21:43:36:278 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:43:52:295 INFO websocket closed wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0
2024/10/22 21:44:01:938 INFO websocket re-established connection to wss://chat.illusion-larp.de/api/v4/websocket?connection_id=qrbrs799wbbame6fgrwy1nj9fc&sequence_number=1
2024/10/22 21:44:01:983 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:44:18:046 INFO websocket closed wss://chat.illusion-larp.de/api/v4/websocket?connection_id=qrbrs799wbbame6fgrwy1nj9fc&sequence_number=1
2024/10/22 21:48:12:485 INFO websocket re-established connection to wss://chat.illusion-larp.de/api/v4/websocket?connection_id=qrbrs799wbbame6fgrwy1nj9fc&sequence_number=3
2024/10/22 21:48:16:843 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:48:26:956 INFO Launch app in Home screen
2024/10/22 21:48:26:965 INFO websocket connecting to wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0
2024/10/22 21:48:26:992 INFO Running "Home
2024/10/22 21:48:27:258 INFO websocket connected to wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0
2024/10/22 21:48:27:258 INFO wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0 got connection id znw8zrqxci8g7j6pyo1mss173h
2024/10/22 21:48:27:258 INFO wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0 got the expected new connection id
2024/10/22 21:48:27:359 DEBUG Performance metric: {
metric = “mobile_load”;
timestamp = 1729626507358;
value = “927.3273749351501”;
}
2024/10/22 21:48:27:447 INFO WEBSOCKET RECONNECT MODELS BATCHING TOOK 16ms
2024/10/22 21:48:27:844 DEBUG error on fetchBindings Received invalid response from the server.; JSON could not be serialized because of error:
Die Daten konnten nicht gelesen werden, da sie nicht das korrekte Format haben.
2024/10/22 21:48:29:259 INFO Running "BottomSheet
2024/10/22 21:48:34:228 INFO Running "Settings
2024/10/22 21:48:36:521 INFO Running "About
2024/10/22 21:48:41:347 INFO Running "SnackBar
2024/10/22 21:48:42:256 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:48:42:281 DEBUG error on sendPerformanceReport Received invalid response from the server.; Response could not be serialized, input data was nil or zero length.
2024/10/22 21:49:42:894 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:49:58:391 INFO Running "Settings
2024/10/22 21:50:00:431 INFO Running "SettingsAdvanced
2024/10/22 21:50:04:368 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:50:08:580 DEBUG Setting the badge count based on database values to 0
2024/10/22 21:50:24:630 INFO websocket closed wss://chat.illusion-larp.de/api/v4/websocket?connection_id=&sequence_number=0
2024/10/22 21:52:44:576 INFO websocket re-established connection to wss://chat.illusion-larp.de/api/v4/websocket?connection_id=znw8zrqxci8g7j6pyo1mss173h&sequence_number=

Hi Bobblue, thank you for reaching out, and I’m sorry to hear you’re still experiencing frustration with this. It might help to review our Mobile Troubleshooting Guide for additional tips, and I also recommend checking if the channel bookmarks feature is causing the issue as the logs suggest errors there. Let us know how it goes!

Hi John
I have no clue where I could adjust a bookmark feature. Can you help me here.
I tried to minimize the markdown nodes rendering on mobile devices. And deactivated the inline rendering. Both with no effect. I’m willing to change (try and error) my configurations but as all worked fine for years it must have something todo with server updates to 10.x or App update from my opinion

You could open an issue at Issues · mattermost/mattermost · GitHub