[GH-ISSUE #2542] [feature]: Better error handling #849

Closed
opened 2026-03-16 17:24:57 +03:00 by kerem · 2 comments
Owner

Originally created by @FranMaric on GitHub (Jul 29, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2542

Is there an existing issue for this?

  • I have searched the existing issues

Summary

I use environment variables in Hoppscotch. When using an environment variable in your path without previously choosing your environment the user interface doesn't give an obvious error that environment is missing or that environment variable is missing it just says "Could not send request". It took me some time to realise what was going on. I think this deserves attention because it's bad user experience. You should a better error that says you are missing an environment variable.

Why should this be worked on?

Better error handling is always gladly accepted by users. This is sub optimal UI/UX

Originally created by @FranMaric on GitHub (Jul 29, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2542 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary I use environment variables in Hoppscotch. When using an environment variable in your path without previously choosing your environment the user interface doesn't give an obvious error that environment is missing or that environment variable is missing it just says "Could not send request". It took me some time to realise what was going on. I think this deserves attention because it's bad user experience. You should a better error that says you are missing an environment variable. ### Why should this be worked on? Better error handling is always gladly accepted by users. This is sub optimal UI/UX
kerem 2026-03-16 17:24:57 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@aitchnyu commented on GitHub (Aug 24, 2022):

Few other contexts where better error message will help.

Doing POST https://mockbin.com just shows "Could not send request". It should inform the user it was a CORS error.

Console shows:

Access to XMLHttpRequest at 'https://mockbin.com/' from origin 'http://192.168.1.6:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
xhr.js?d0e7:210          
POST https://mockbin.com/ net::ERR_FAILED

Doing https://fakefakefdasfsafa.com (non existing site) just shows "Could not send request". It should inform the user it was a DNS failure.

Console shows:

POST https://fakefakefdasfsafa.com/ net::ERR_NAME_NOT_RESOLVED
<!-- gh-comment-id:1225510895 --> @aitchnyu commented on GitHub (Aug 24, 2022): Few other contexts where better error message will help. Doing `POST https://mockbin.com` just shows "Could not send request". It should inform the user it was a CORS error. Console shows: ``` Access to XMLHttpRequest at 'https://mockbin.com/' from origin 'http://192.168.1.6:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. xhr.js?d0e7:210 POST https://mockbin.com/ net::ERR_FAILED ``` Doing `https://fakefakefdasfsafa.com` (non existing site) just shows "Could not send request". It should inform the user it was a DNS failure. Console shows: ``` POST https://fakefakefdasfsafa.com/ net::ERR_NAME_NOT_RESOLVED ```
Author
Owner

@liyasthomas commented on GitHub (Oct 2, 2022):

When using an environment variable where no environment is selected; will gives you a red background color on it. The same happens when the selected environment doesn’t have a the specified variables.

<!-- gh-comment-id:1264613087 --> @liyasthomas commented on GitHub (Oct 2, 2022): When using an environment variable where no environment is selected; will gives you a red background color on it. The same happens when the selected environment doesn’t have a the specified variables.
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#849
No description provided.