Skip to content

Collection-level pre-request script is stopping endpoint-level re-req script #6130

@georgiamarg1

Description

@georgiamarg1

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying
  • this feature was working in a previous version but is broken in the current release.

Bruno version

2.14.2

Operating System

macOS 26.0.1

Describe the bug

I have a workspace-level pre-request script, that generates a JWT Bearer token for every request, depending on certain conditions. This runs first and then on some endpoints we have subsequent pre-request scripts that also run after.

However, I have noticed over the past couple of weeks that our endpoint pre-req script hasn't been running as expected. After debugging, I have found that the below condition in our Workspace pre-request script:

Image

is causing my endpoint's pre-request script to be "skipped" - specifically that return on the second line of the above excerpt.

.bru file to reproduce the bug

No response

Screenshots/Live demo link

I have attached screenshots below of what happens when hitting my 'Test' env, which is triggering the return in the first pre-request script.

Image

And then another screenshot of what happens when I hit my local env

Image

Below is my endpoint-level pre-request script that I am expecting to see with every invocation
Image

Metadata

Metadata

Labels

bugSomething isn't workinghas-pr

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions