Skip to content

fix(api): add missing await on response.json() in getUserStatus, userInfo, and userData#1188

Open
Aryan-Verma-999 wants to merge 1 commit intoRocketChat:developfrom
Aryan-Verma-999:fix/add-missing-await-response-json
Open

fix(api): add missing await on response.json() in getUserStatus, userInfo, and userData#1188
Aryan-Verma-999 wants to merge 1 commit intoRocketChat:developfrom
Aryan-Verma-999:fix/add-missing-await-response-json

Conversation

@Aryan-Verma-999
Copy link

@Aryan-Verma-999 Aryan-Verma-999 commented Mar 5, 2026

These three methods were missing await on response.json(), causing them to return a Promise instead of the parsed JSON body. This means callers silently receive unresolved promises, and any JSON parsing errors bypass the async error handling chain.

PR Test Details
Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-1188 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant