"Invalid room" error in logfile

Description

In the logfile I frequently see this error:

{“level”:50,“time”:“2023-01-24T13:00:02.563Z”,“pid”:8,“hostname”:“ab43fb082f49”,“name”:“System”,“msg”:“Exception while invoking method getRoomByTypeAndName”,“err”:{“type”:“errorClass”,“message”:“Invalid room [error-invalid-room]”,“stack”:“Error: Invalid room [error-invalid-room]
at MethodInvocation.getRoomByTypeAndName (server/publications/room/index.js:53:10)
at MethodInvocation.methodsMap. (app/lib/server/lib/debug.js:74:34)
at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1885:12)
at packages/ddp-server/livedata_server.js:1803:15
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at packages/ddp-server/livedata_server.js:1801:36
at new Promise ()
at Server.applyAsync (packages/ddp-server/livedata_server.js:1800:12)
at Server.apply (packages/ddp-server/livedata_server.js:1739:26)
at Server.call (packages/ddp-server/livedata_server.js:1721:17)
at Object.post (app/api/server/v1/misc.ts:554:27)
at app/api/server/api.js:463:96
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at Object._internalRouteActionHandler [as action] (app/api/server/api.js:463:39)
at Route._callEndpoint (packages/rocketchat_restivus/lib/route.coffee:150:32)
at packages/rocketchat_restivus/lib/route.coffee:59:33
at packages/simple_json-routes.js:100:9
=> awaited here:
at Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:60:12)
at Server.apply (packages/ddp-server/livedata_server.js:1752:22)
at Server.call (packages/ddp-server/livedata_server.js:1721:17)
at Object.post (app/api/server/v1/misc.ts:554:27)
at app/api/server/api.js:463:96
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at Object._internalRouteActionHandler [as action] (app/api/server/api.js:463:39)
at Route._callEndpoint (packages/rocketchat_restivus/lib/route.coffee:150:32)
at packages/rocketchat_restivus/lib/route.coffee:59:33
at packages/simple_json-routes.js:100:9”,“isClientSafe”:true,“error”:“error-invalid-room”,“reason”:“Invalid room”,“details”:{“method”:“getRoomByTypeAndName”},“errorType”:“Meteor.Error”},“msg”:“Invalid room [error-invalid-room]”}

I don’t get any complaints from users, but if something is wrong, I’d like to correct it :slight_smile:

Server Setup Information

Version 5.4.1
Apps Engine Version 1.36.0
Node Version v14.19.3
Database Migration 281 (January 22, 2023 9:19)
MongoDB 5.0.6 / wiredTiger (oplog Enabled)

Hi!

This logs says that some logged user is consuming your API and receiving an error that the room is invalid.

The logs before it, with increased verbosity, may give a clue about what channel is this, and why this is happening, probably.

But this is nothing to worry about, unless it’s happening too much, considering your active users ammount.

Thanks @dudanogueira.

Not sure if it’s related, but at the same time as the log entry, an old message in a channel is re-notified to several (possible all) users in the channel. This happens a couple of times a day.

I’ve changed the log level, hopefully it will reveal something.

1 Like

Have you solved the problem? I am the same problem. Most often this happens when the user replies to the agent.