mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #2921] [MERGED] fix: response time for requests via extension has incorrect value #4141
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/2921
Author: @aitchnyu
Created: 2/13/2023
Status: ✅ Merged
Merged: 2/17/2023
Merged by: @AndrewBastin
Base:
main← Head:timing-bug📝 Commits (2)
72eced1fix: response time was showing an impossible high value347188fchore: remove extra vue shim definition in shims.d.ts📊 Changes
3 files changed (+10 additions, -11 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/http/Request.vue(+7 -0)📝
packages/hoppscotch-common/src/helpers/strategies/ExtensionStrategy.ts(+1 -1)📝
packages/hoppscotch-common/src/shims.d.ts(+2 -10)📄 Description
Closes #2897
Description
The reported bug was in the extension. If one request had failed to return a response, second request shows a huge response time and threw an error. We guessed some object whose reference was shared between requests. Calling the
cancelRequest()on the extension fixed the response time problem and the error.Fixed the typing interface for
window.__POSTWOMAN_EXTENSION_HOOK__with correct method name . Exported thewindowtyping, seems it wasn't previously doing anything.Checks
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.