Skip to content

fix: classify request errors and give clear user-facing messages (#319) - #320

Open
surajpatidar1 wants to merge 1 commit into
hoppscotch:mainfrom
surajpatidar1:fix/319-error-handling
Open

fix: classify request errors and give clear user-facing messages (#319)#320
surajpatidar1 wants to merge 1 commit into
hoppscotch:mainfrom
surajpatidar1:fix/319-error-handling

Conversation

@surajpatidar1

Copy link
Copy Markdown

Fixes #319

  • Adds error classification (INVALID_URL, NETWORK_ERROR, TIMEOUT, CANCELLED, UNKNOWN) with clear user-facing messages
  • Validates URL before fetch instead of letting a raw TypeError bubble up
  • Adds a 30s request timeout so hung requests don't fail silently forever
  • Reworked cancel logic to support multiple concurrent requests safely
  • Tested manually: invalid URL, unreachable host, and successful request all return correct codes/messages

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.

Improve error handling and user feedback for failed requests in extension

1 participant