RocketChat / RocketChat/Rocket.Chat

rocketchat API not connect really user

Open
#20,060 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

User not really connected by API Login

Steps to reproduce:

Use API:

  1. connect user
  2. set active status

login_rocket_api

Expected behavior:

User must be connected. And the number online user increment

Actual behavior:

The number of online user aren't different.
When I get all presence user ( http://my_addr_rocketchat/api/v1/users.presence ), I have list off all user but when I watch it in admin into interface online user not corresponds ( 2 in this case but I connect 10 other via API).
image
How can I connect al users.

Server Setup Information:
Version of Rocket.Chat Server: 3.10.0
Operating System: linux
Deployment Method: docker
Number of Running Instances: 2
NodeJS Version: v12.18.4
MongoDB Version: 4.0.21
Client Setup Information
  • Desktop App or Browser Version:
  • Operating System:
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 API login and active-status steps against the reported two-instance Docker setup, then compare the users.presence response with the admin online-user count. Check whether the discrepancy occurs with one instance or only with multiple instances; done means API-connected users are consistently reflected in the online count.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, mongodb, nodejs, typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.