Skip to content

/api/v1/chat.sendMessage returns error "Cannot read property 'starred' of undefined" when setting the alias attribute #16291

@mlowton

Description

@mlowton

Description:

Sending a chat message returns a 400 http status when including an alias. The issue was noticed following an update on January 17, 2020.

The api request was working before the update.
The request is successful without the 'alias' attribute.

Steps to reproduce:

  1. Using the api path '/api/v1/chat.sendMessage', send a request body with an alias

Expected behavior:

The message should be created successfully.

Actual behavior:

image

Server Setup Information:

  • Version of Rocket.Chat Server: 2.4.2
  • Operating System: Linux
  • Deployment Method: snap
  • Number of Running Instances: 1
  • NodeJS Version: 8.17.0
  • MongoDB Version: 3.6.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions