Error in logs: MethodInvocation.createDirectMessage

Description

in the logs, we have these msj:
I20211112-16:43:08.867(0) Exception while invoking method ‘createDirectMessage’ Error: Match error: Expected string, got null at check (packages/check/match.js:36:17) at createDirectMessage (server/methods/createDirectMessage.js:12:2) at MethodInvocation.createDirectMessage (server/methods/createDirectMessage.js:94:10) at MethodInvocation.methodsMap. (app/lib/server/lib/debug.js:90:34) at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1771:12) at packages/ddp-server/livedata_server.js:719:19 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12) at packages/ddp-server/livedata_server.js:717:46 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12) at packages/ddp-server/livedata_server.js:715:46 at new Promise () at Session.method (packages/ddp-server/livedata_server.js:689:23) at packages/ddp-server/livedata_server.js:559:43
I20211112-16:43:08.868(0) Sanitized and reported to the client as: errorClass [Error]: Match failed [400] at errorClass. (packages/check/match.js:91:27) at new errorClass (packages/meteor.js:655:17) at check (packages/check/match.js:36:17) at createDirectMessage (server/methods/createDirectMessage.js:12:2) at MethodInvocation.createDirectMessage (server/methods/createDirectMessage.js:94:10) at MethodInvocation.methodsMap. (app/lib/server/lib/debug.js:90:34) at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1771:12) at packages/ddp-server/livedata_server.js:719:19 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12) at packages/ddp-server/livedata_server.js:717:46 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12) at packages/ddp-server/livedata_server.js:715:46 at new Promise () at Session.method (packages/ddp-server/livedata_server.js:689:23) at packages/ddp-server/livedata_server.js:559:43 { isClientSafe: true, error: 400, reason: ‘Match failed’, details: undefined, errorType: ‘Meteor.Error’ }
I20211112-16:43:08.868(0) undefined undefined
I20211112-17:56:47.672(0) Exception in defer callback: Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20) at TLSWrap.callbackTrampoline (internal/async_hooks.js:126:14) { errno: ‘ECONNRESET’, code: ‘ESOCKET’, syscall: ‘read’, command: ‘CONN’ }

But I don’t find any issue with emails

Server Setup Information

  • Version of Rocket.Chat Server: 3.18.3
  • Operating System: Ubuntu
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 12.22.1
  • MongoDB Version: 3.6.14
  • Proxy: nginx
  • Firewalls involved: no

Any additional Information

But I don’t find any issue with emails. it sent emails but everything it sends one show these errors.

Hi!

We’ll need more information in order to evaluate this.

  1. Does it persist on latest versions?
  2. What are the exact steps you do to reproduce it on a clean install?

Thanks!