Skip to content

im.members endpoint reports internal undefined property #11758

@Galatoni

Description

@Galatoni

Description:

When querying the im.members endpoint with a roomID (eg. api/v1/im.members?roomId=hE3ePz72DsCSkAkw6sTpmBpWonZMSLH4bi) i'm met with a 400 response and what appears to be an internal error outputted as the reason for failure:

{"success":false,"error":"Cannot read property 'username' of undefined"}

Steps to reproduce:

Make any query to the im.members endpoint with a roomID.

Expected behavior:

I should receive a useful error message (if indeed there's a fault with the query) or a response associated with the query.

Actual behavior:

I receive the above error response.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.68.3
  • Operating System: Linux
  • Deployment Method: Snaps
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 8.11.3 - x64

Relevant logs:

No error output in logs.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions