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

Failed to construct 'URL': Invalid URL everytime the URL is modified #2652

Closed
2 tasks done
hayden-mumm opened this issue Jul 16, 2024 · 2 comments · Fixed by #2897
Closed
2 tasks done

Failed to construct 'URL': Invalid URL everytime the URL is modified #2652

hayden-mumm opened this issue Jul 16, 2024 · 2 comments · Fixed by #2897
Labels
bug Something isn't working

Comments

@hayden-mumm
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

Every time I modify the URL I get the following error: Failed to construct 'URL': Invalid URL

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Here's the issue
image
Tried this and it did not have the issue
image

@hayden-mumm hayden-mumm added the bug Something isn't working label Jul 16, 2024
@hayden-mumm
Copy link
Author

This is still happening in 1.22

@Its-treason
Copy link
Member

Bruno tries to parse the URL to create the query parameter table in the "Params" tab. But your URL is invalid because of the variable placeholder for the port number. Sadly, I don't have a good fix for you now. Maybe try to create a "Request Var" in the "Vars" tab that combines your hostname and port like this:

image

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

Successfully merging a pull request may close this issue.

2 participants