Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripting (pre/post) does not respect proxy settings #2287

Open
2 tasks done
sindhubb opened this issue May 10, 2024 · 0 comments
Open
2 tasks done

Scripting (pre/post) does not respect proxy settings #2287

sindhubb opened this issue May 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sindhubb
Copy link

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

On requests where I have a pre/post request, I do not see the request in my local mitm proxy. I do see the actual main request.

.bru file to reproduce the bug

meta {
  name: Ping
  type: http
  seq: 1
}

get {
  url: http://localhost:3334/ping
  body: none
  auth: none
}

assert {
  res.status: eq 200
}

script:pre-request {
  axios({
    method: 'get',
    url: 'http://bit.ly/2mTM3nY',
    responseType: 'stream'
  })
    .then(function (response) {
      response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
    });
}

docs {
  ## What is this?
  This end point returns a pong along with current time of the system. 
}

Screenshots/Live demo link

image
@sindhubb sindhubb added the bug Something isn't working label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant