Closed Angstroem closed 2 years ago
Yeah I ran into this bug myself and have not found a solution yet. olm.js
is throwing a RuntimeException so I need to dig in and see if there is any way to prevent this.
The file is obfuscated (because it is compiled) so it has made progress on this slow.
One way to fix this is to check the access token with loginWithToken()
before we pass it to the client. I would assume the error would still happen if the auth token got invalidated (or even if the server loses connection) so I will have to out those cases.
@Angstroem Give the latest version a try. If an invalid token is passed it wont start the client anymore. This should be resolved.
Updated to version 0.4.1 today and i can confirm that a wrong access token does not crash NodeRED anymore. Thanks for the fast fix @skylord123 !
@Angstroem awesome, glad it worked out :)
Problem
When setting up a new Matrix server config and using a access token that is invalid, the NodeRED container crashes. This furthermore forces a backup to be redeployed as the container will not start again with the wrongly configured token.
Expectation
If the server config is wrong, an error is thrown in the NodeRED console
Actual behavior
The NodeRED Docker container crashes
How to reproduce?
Create a new Matrix server config or edit any currently working config and change to the access token to an invalid one, then redeploy the flow.
Additional information
System
NodeRed: 2.1.6, latest today Docker: Version 20.10.9, build c2ea9bc node-red-contrib-matrix-chat: 0.3.0, latest today
Logs
When crashing, the container yields the following output:
The logfile at
/data/.npm/_logs/2022-01-26T20_18_35_168Z-debug.log
says: