test no working

Aperta
#28 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker-compose, node.js, typescript
Ambito
testing-qa

Direzione di ricerca

Inizia riproducendo il malfunzionamento con l’ambiente Docker Compose mostrato e ispeziona /app/cjs/profile.js alle righe 184 e 227. Traccia le risposte di accesso 401 insieme agli errori getRandomSubscription undefined. Il lavoro è completato quando l’esecuzione di load-scale crea gli utenti e consente loro di accedere senza gli errori ripetuti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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-%[email protected]'
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-%[email protected]

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

Lingua principale
TypeScript
Stelle
11
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketChat/rocket.chat.load.tester

Tutte le issue di RocketChat/rocket.chat.load.tester

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.