Closed jaller94 closed 7 months ago
I have enabled LOAD_EXISTING_ROOMS and get following error.
Feb 24 09:26:19 alpha systemd[1]: Starting matrix-appservice-polychat.service - Matrix Appservice polychat bridge...
Feb 24 09:26:19 alpha matrix-appservice-polychat[4151421]: 111ffbc81b08701080f3b745c807c471787f4b07990e1cfc1a98329b2cdfe26b
Feb 24 09:26:20 alpha systemd[1]: Started matrix-appservice-polychat.service - Matrix Appservice polychat bridge.
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: {"level":30,"time":1708763181053,"pid":1,"hostname":"111ffbc81b08","name":"logger","msg":"pino.json does not exist. Use it to configure the logger. See https://getpino.io/#/docs/api?id=options"}
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: {"level":30,"time":1708763181115,"pid":1,"hostname":"111ffbc81b08","name":"appservice","msg":"AppService: Listening on 0.0.0.0:9998"}
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: {"level":40,"time":1708763181116,"pid":1,"hostname":"111ffbc81b08","name":"appservice","msg":"loadExistingRooms DOES NOT PROPERLY WORK YET"}
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: 218 | * Gets an Intent for a given user ID.
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: 219 | * @param {string} userId The user ID to get an Intent for.
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: 220 | * @returns {Intent} An Intent for the user.
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: 221 | */
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: 222 | getIntentForUserId(userId) {
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: 223 | let intent = this.intentsCache.get(userId);
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: ^
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: TypeError: undefined is not an object (evaluating 'this.intentsCache')
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: at getIntentForUserId (/app/node_modules/matrix-bot-sdk/lib/appservice/Appservice.js:223:22)
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: at map (:1:21)
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: at /app/src/index.ts:987:12
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: at loadExistingRooms (/app/src/index.ts:981:33)
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: at /app/src/index.ts:1073:19
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: at /app/src/index.ts:1070:29
Feb 24 09:26:21 alpha matrix-appservice-polychat[4151436]: {"level":30,"time":1708763181117,"pid":1,"hostname":"111ffbc81b08","name":"appservice","msg":"API: Listening on 0.0.0.0:9999"}
Feb 24 09:26:21 alpha systemd[1]: matrix-appservice-polychat.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 09:26:21 alpha systemd[1]: matrix-appservice-polychat.service: Failed with result 'exit-code'.
Feb 24 09:26:39 alpha systemd[1]: Stopped matrix-appservice-polychat.service - Matrix Appservice polychat bridge.
Todo:
Requires the feature flag env var
LOAD_EXISTING_ROOMS=true
to be set.