Load tester hanging in login function (due to client.subscribe)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- api, testing-qa
Research direction
Start with api.js at line 172 and reproduce the load tester hanging during login with the subscription block enabled, then compare it with the block commented out. Trace client.subscribeUserData() and the subscribe calls to identify where execution stops. Done means login completes without hanging while the intended callback data remains available.
Written by the indexing model from the issue text.
Description
Hello there
I have found an issue, apparently caused by this block in api.js, line 172
if (!NO_SUBSCRIBE) {
await client.subscribeUserData();
} else if (NO_SUBSCRIBE === 'no-active') {
await Promise.all([
'roles',
'webdavAccounts',
'userData',
// 'activeUsers'
].map(stream => client.subscribe(stream, '')));
}
It looks like the execution is hanging there, because if I comment that block, the project is working very well...
I understand that this block allows us to get some "callback" data after our actions, but I may need your help understanding it better, hopefully we'll manage to fix it
Thanks in advance
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RocketChat/rocket.chat.load.tester
-
test no workingOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
RocketChat/rocket.chat.load.tester#28 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in RocketChat/rocket.chat.load.tester
Similar issues
-
bug
Difficulty 2/5 Half a day Newbie friendliness 68/100
amosblomqvist/learnharness#758 ·
Maintainers usually reply within 2 days
-
Change WorkspacesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
bitfocus/companion-module-renewedvision-propresenter-api#134 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
rcpch/digital-growth-charts-react-component-library#304 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dsh-market/dsh-market#1210 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
trustjonathan/STUDY-HUB#13 ·