Skip to content

[BUG] API chat.react is not working anymore #10286

@rafaelks

Description

@rafaelks

Description:

The API v1/chat.react was being used in the development of the Android v2 and we're migrating our React method also to iOS. In 0.63.0-rc.1 it doesn't work anymore.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.63.0-rc.1
  • Operating System: Linux

Logs (trying to react with 😊 emoji):

:method: POST
:path: /api/v1/chat.react
:authority: open.rocket.chat
:scheme: https
x-auth-token: (private information)
x-user-id: (private information)
content-type: application/json; charset=utf-8
content-length: 49
accept-encoding: gzip
user-agent: okhttp/3.10.0

{"messageId":"rapbr5GuaM5ZrGPvr","emoji":"blush"}

:status: 400
access-control-allow-origin: *
cache-control: no-store
content-encoding: gzip
content-type: application/json
date: Sun, 01 Apr 2018 00:29:38 GMT
pragma: no-cache
vary: Accept-Encoding
x-instance-id: rGYBHkzA5SDEEteHa
content-length: 99

{"success":false,"error":"Invalid emoji provided. [error-not-allowed]","errorType":"error-not-allowed"}

Logs (trying to react with 🚀 emoji):

:method: POST
:path: /api/v1/chat.react
:authority: open.rocket.chat
:scheme: https
x-auth-token: (private information)
x-user-id: (private information)
content-type: application/json; charset=utf-8
content-length: 50
accept-encoding: gzip
user-agent: okhttp/3.10.0

{"messageId":"mWfp2fCQkwfbMBhW6","emoji":"rocket"}

:status: 400
access-control-allow-origin: *
cache-control: no-store
content-encoding: gzip
content-type: application/json
date: Sun, 01 Apr 2018 00:29:18 GMT
pragma: no-cache
vary: Accept-Encoding
x-instance-id: LKF4dXafsniMQkW9c
content-length: 99

{"success":false,"error":"Invalid emoji provided. [error-not-allowed]","errorType":"error-not-allowed"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions