RocketChat / RocketChat/Rocket.Chat

From v7.4 `logout` is not responding with JSON

Open
#35,922 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

When testing the REST API, when trying to logout, the API does no longer respond with JSON but still returns a 200.

Steps to reproduce:
  1. Call login to get your authentication token (https://developer.rocket.chat/apidocs/login-with-username-and-password)
  2. Call logout with the token you got from login (https://developer.rocket.chat/apidocs/logout)
Expected behavior:

Logout responds JSON following the schema present in the documentation:

Image

Actual behavior:

Logout responds with 200 but the response body is empty

Server Setup Information:
  • Version of Rocket.Chat Server: 7.4.0, 7.4.2, 7.5.1
  • License Type:
  • Number of Users:
  • Operating System:
  • Deployment Method: Docker
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version: 5
Client Setup Information
  • Desktop App or Browser Version:
  • Operating System: Docker
Additional context
Relevant logs:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the login and logout calls using the linked REST API documentation and the reported Rocket.Chat versions. Compare the logout response with the documented JSON schema; the work is done when logout still returns HTTP 200 with the expected JSON body.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.