Skip to content

fix(web-console): wait for all body to be streamed before calculating network time#429

Merged
bluestreak01 merged 1 commit into
mainfrom
fix/network-time
May 21, 2025
Merged

fix(web-console): wait for all body to be streamed before calculating network time#429
bluestreak01 merged 1 commit into
mainfrom
fix/network-time

Conversation

@emrberk
Copy link
Copy Markdown
Collaborator

@emrberk emrberk commented May 20, 2025

.json() reads the whole response body, and then parses it as JSON.
Our network time should include the time elapsed while waiting for the whole body, but should not include the parsing time. Thus, replaced .json() with .text() and then JSON.parse()

@emrberk emrberk requested a review from bluestreak01 May 20, 2025 10:24
@bluestreak01 bluestreak01 merged commit b88fc47 into main May 21, 2025
4 checks passed
@bluestreak01 bluestreak01 deleted the fix/network-time branch May 21, 2025 10:23
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
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.

2 participants