[GH-ISSUE #4955] [feature]: provide support for stop executing main request from pre-request scripts #1873

Open
opened 2026-03-16 22:12:10 +03:00 by kerem · 1 comment
Owner

Originally created by @Leon-Luu on GitHub (Apr 4, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4955

Is there an existing issue for this?

  • I have searched the existing issues

Summary

Hi!

In the pre-request script there is possibility to make fetch() to another REST API. We want to have a logic to stop the main request based on the result from the fetch.

Basically this feature request is about similar to pm.execution.skipRequest() on Postman:
https://community.postman.com/t/the-new-skip-request-feature/54806

Example:

Image

Why should this be worked on?

  1. Improve use cases of Pre-request script to support request
  2. competitive for Hoppscotch against other tools
Originally created by @Leon-Luu on GitHub (Apr 4, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4955 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Summary Hi! In the pre-request script there is possibility to make fetch() to another REST API. We want to have a logic to stop the main request based on the result from the fetch. Basically this feature request is about similar to pm.execution.skipRequest() on Postman: https://community.postman.com/t/the-new-skip-request-feature/54806 Example: ![Image](https://github.com/user-attachments/assets/55539345-0cce-46dc-951f-b297920f6f27) ### Why should this be worked on? 1) Improve use cases of Pre-request script to support request 2) competitive for Hoppscotch against other tools
Author
Owner

@kzkvv commented on GitHub (Jul 10, 2025):

+1
Moved from postman, this feature is missing comparing to it :(

<!-- gh-comment-id:3057013809 --> @kzkvv commented on GitHub (Jul 10, 2025): +1 Moved from postman, this feature is missing comparing to it :(
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#1873
No description provided.