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

Error "Maximum number of redirects exceeded" Bruno CLI (Gitlab) #3716

Open
2 tasks done
Silva-PT opened this issue Dec 31, 2024 · 2 comments
Open
2 tasks done

Error "Maximum number of redirects exceeded" Bruno CLI (Gitlab) #3716

Silva-PT opened this issue Dec 31, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Silva-PT
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

Trying to execute a simple GET request but always end up getting the error "Maximum number of redirects exceeded"

image

Running the GET request locally runs without an issue, as expected, but using a pipeline within Gitlab (with external access available, no extra security settings) we always get the error, using newman, this doesn't happen.

Using --verbose doesn't display anything different (not sure why that's even an option) and the report (attached) shows everything as null.

If anyone has any ideas they could share, please, let me know.

.bru file to reproduce the bug

meta {
name: Google Access
type: http
seq: 6
}

get {
url: https://www.google.com
body: none
auth: none
followRedirects: true
}

headers {
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Language: en-US,en;q=0.5
}

Screenshots/Live demo link

Report.json

@Silva-PT Silva-PT added the bug Something isn't working label Dec 31, 2024
@ganesh-bruno ganesh-bruno self-assigned this Jan 2, 2025
@ganesh-bruno
Copy link
Collaborator

Hey @Silva-PT,

Thanks for reporting this issue!

Could you try adding req.setMaxRedirects(50) in the request script section and then try?
Let us know if the issue persists.

@Silva-PT
Copy link
Author

Hey @Silva-PT,

Thanks for reporting this issue!

Could you try adding req.setMaxRedirects(50) in the request script section and then try? Let us know if the issue persists.

Hello @ganesh-bruno , I've tried that and with even 999999 and nothing changed, not even the time to execute the request, it looks more like req.setMaxRedirects isn't doing anything.

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

2 participants