[GH-ISSUE #206] Display sendRequest runtime errors in the console #78

Closed
opened 2026-03-16 13:13:08 +03:00 by kerem · 3 comments
Owner

Originally created by @nickpalenchar on GitHub (Oct 23, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/206

Originally assigned to: @nickpalenchar on GitHub.

Currently only a specific type of error caught in sendRequest is displayed. All others are swallowed, but the message displayed to the users instructs to check the console for errors. Let's show those errors appropriately so that the resolve makes sense.

Originally created by @nickpalenchar on GitHub (Oct 23, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/206 Originally assigned to: @nickpalenchar on GitHub. Currently only a specific type of error caught in sendRequest is displayed. All others are swallowed, but the message displayed to the users instructs to check the console for errors. Let's show those errors appropriately so that the resolve makes sense.
kerem closed this issue 2026-03-16 13:13:13 +03:00
Author
Owner

@liyasthomas commented on GitHub (Oct 23, 2019):

Thats better! Perhaps show a toast? Than console.log().

this.$toast.error(error.response + error.code, {
 icon: 'error'
});

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

<!-- gh-comment-id:545223080 --> @liyasthomas commented on GitHub (Oct 23, 2019): Thats better! Perhaps show a toast? Than console.log(). ``` this.$toast.error(error.response + error.code, { icon: 'error' }); ``` https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
Author
Owner

@nickpalenchar commented on GitHub (Oct 23, 2019):

Toast would be good. Looking at a why-not-have both approach. Toast would display the error message but having the full error in the console is also good to easily refer to, as well as getting more verbose details like the error stack (this is being implemented as a console.error rather than console log)

<!-- gh-comment-id:545226320 --> @nickpalenchar commented on GitHub (Oct 23, 2019): Toast would be good. Looking at a why-not-have both approach. Toast would display the error message but having the full error in the console is also good to easily refer to, as well as getting more verbose details like the error stack (this is being implemented as a console.error rather than console log)
Author
Owner

@liyasthomas commented on GitHub (Oct 23, 2019):

Yeah! That's correct. Just saw the branch. Make the PR. Will merge right away!

<!-- gh-comment-id:545226669 --> @liyasthomas commented on GitHub (Oct 23, 2019): Yeah! That's correct. Just saw the branch. Make the PR. Will merge right away!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#78
No description provided.