RocketChat / RocketChat/rocket.chat.load.tester

test no working

Open
#28 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
11
Forks
7
Avg merge
2d 6h
Merged PRs (30d)
2

Description

Hello! Test no working. Please help
Docker-compose logs:

load-scale_1  | error during login {
load-scale_1  |   status: 401,
load-scale_1  |   data: { status: 'error', error: 'Unauthorized', message: 'Unauthorized' }
load-scale_1  | } {
load-scale_1  |   username: 'user.uid-21c0f6f74e3dce56c5074717c465c02c-8',
load-scale_1  |   password: 'performance',
load-scale_1  |   email: 'user.uid-21c0f6f74e3dce56c5074717c465c02c-8test-%s@test.ru'
load-scale_1  | }
load-scale_1  | Error during log in {
load-scale_1  |   status: 401,
load-scale_1  |   data: { status: 'error', error: 'Unauthorized', message: 'Unauthorized' }
load-scale_1  | }
load-scale_1  | Logged users total: 0
load-scale_1  | Starting sending messages
load-scale_1  | (node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getRandomSubscription' of undefined
load-scale_1  |     at /app/cjs/profile.js:184:43
load-scale_1  |     at step (/app/cjs/profile.js:48:23)
load-scale_1  |     at Object.next (/app/cjs/profile.js:29:53)
load-scale_1  |     at /app/cjs/profile.js:23:71
load-scale_1  |     at new Promise (<anonymous>)
load-scale_1  |     at __awaiter (/app/cjs/profile.js:19:12)
load-scale_1  |     at /app/cjs/profile.js:178:42
load-scale_1  |     at /app/node_modules/@rocket.chat/emitter/dist/index.js:1:1003
load-scale_1  |     at Array.forEach (<anonymous>)
load-scale_1  |     at class_1.i.emit (/app/node_modules/@rocket.chat/emitter/dist/index.js:1:982)
load-scale_1  | (Use `node --trace-warnings ...` to show where the warning was created)
load-scale_1  | (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
load-scale_1  | (node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
load-scale_1  | (node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getRandomSubscription' of undefined
load-scale_1  |     at /app/cjs/profile.js:227:35
load-scale_1  |     at step (/app/cjs/profile.js:48:23)
load-scale_1  |     at Object.next (/app/cjs/profile.js:29:53)
load-scale_1  |     at /app/cjs/profile.js:23:71
load-scale_1  |     at new Promise (<anonymous>)
load-scale_1  |     at __awaiter (/app/cjs/profile.js:19:12)
load-scale_1  |     at /app/cjs/profile.js:223:52
load-scale_1  |     at /app/node_modules/@rocket.chat/emitter/dist/index.js:1:1003
load-scale_1  |     at Array.forEach (<anonymous>)
load-scale_1  |     at class_1.i.emit (/app/node_modules/@rocket.chat/emitter/dist/index.js:1:982)
load-scale_1  | (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

load scale environment:

    environment:
      - HOST_URL=http://127.0.0.1:3000
      - HOW_MANY_USERS=${HOW_MANY_USERS:-10}
      - USERS_PER_ROOM=${SEATS_PER_ROOM:-5}
      - LOGIN_BATCH=${LOGIN_BATCH:-5}
      - SSL_ENABLED=${SSL_ENABLED:-no}
      - DATABASE_URL=${DATABASE_URL}
      - DATABASE_NAME=${DATABASE_NAME}
      - TASK_ID=1
      - CLIENT_TYPE=web
      - USERS_USERNAME=test-%s
      - USERS_PASSWORD=test-%s
      - USERS_EMAIL=test-%s@test.ru

Errors are repeated, new users do not appear in rocket chat

Contributor guide

No contributing guide indexed for this repository

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 failure with the shown Docker Compose environment and inspect /app/cjs/profile.js at lines 184 and 227. Trace the 401 login responses alongside the undefined getRandomSubscription errors. Done means the load-scale run creates and logs in users without the repeated errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, node.js, typescript
Domain
testing-qa
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.