-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Localhost #124
Comments
@rfoel Apologies for checking on this late. I was able to hit localhost on my machine. Can you confirm if you are still facing the same issue? |
I have Bruno v0.10.2 installed and macOS Ventura 13.1. I recorded a video with the issue. Screen.Recording.2023-03-20.at.08.58.42.mov |
@rfoel Can you confirm that curl works |
@helloanoop yes it works fine. |
Same error. I'm not really sure what's happening. Postman and Insomnia work fine on my machine.
|
@rfoel Did you try to check if you have any firewall rule specific for Bruno, which might be blocking it? After reading your issue, I wanted to test that, so on my MBP M1, I've blocked Bruno using LuLu and I got the same error you have. Maybe you can also try to remove the app and reinstall it. |
Ok, sorry, disregard the part about LuLu. It is not blocking my connection to localhost after all. After setting the rule, I've closed Bruno, and when I opened it again, it didn't select my correct environment so my {{baseUrl}} was not being populated, hence the connection error. Sorry about that. LuLu affects an external connection though... |
I do have the same issue not using LuLu |
Ironically, for some reason, I started to get the same issue as @rfoel: It should have nothing to do with the firewall / LuLu, as I stated on my previous post. I can make external requests (google.com, for example), but localhost stopped being reachable. One minute it was working, the other it wasn't. My only change was to add Nuxt devtools in the project I was testing before. I have disabled the devtools, just to see if it had some impact, to no avail. I have created a new Nuxt project (no devtools) and the result was the same. What I found is that if I run It doesn't make any sense to me, since it was working even before the I'm using Nuxt is 3.7.4, and my node version is 18.15. I'm also using If anyone has some thoughts on this, it would be appreciated. |
I've made some discoveries. In a project running an express app with docker, bruno seems to work with localhost. My problem still persists when I use |
Experiencing the same with {
"serverless": "^3.35.2",
"serverless-offline": "13.2.0"
} |
Personal update: My issue disappeared after upgrading to Mac OSX Sonoma. Can't reproduce it anymore. |
I guess the issue is specific with |
@rfoel I'm not using I am just using Nuxt 3 (Vue 3), which starts everything with Luckily, I have updated Bruno and my issue disappeared (meaning that I don't need to use Btw, concerning Mac OSX Sonoma that @julianhirt mentioned, I had already upgraded when I had the issue with Bruno, so at least for me, Sonoma didn't solve it. |
Hey, all! I'm on Linux Mint 21.2 (which I think is built on Ubuntu 22.04 LTS), and I'm seeing a similar error, except mine's happening on port 80: I haven't modified any configurations or preferences or anything. I literally just installed Bruno a few minutes ago and tried making my first request — and this was the first thing I saw. (And I tried it several more different ways and got the same result each time.) |
@jrc03c @fabioduque Is the issue unique to localhost or is it happening for public apis too? |
@helloanoop for me it was only happening on loopback (localhost or 127.0.0.1) And also remember that for me, in the beginning it worked even without the Super weird and I know that I'm not being very helpful with this info, because you won't be able to replicate or debug... |
Same for me. |
ok I could track it down to a wsl2 issue. My backend application is running within wsl2 and looks like bruno was not able to call this endpoint via http://localhost or http://127.0.0.1 |
So I am running into the same error as everyone here, in my case I think I know what the issue is, local ssl certs. I have set up local ssl certs with dotnet before on linux, but it was a bit of a bear. I will test that and report back if creating a self signed ssl cert will fix the issue with Bruno. |
@austinwilcox Have you tried disabling SSL check in preferences..You can open preferences by clicking on the gear icon on the left bottom of the screen |
@helloanoop That fixed the issue for me! Thank you. Glad you got me before I dove into the bear of ssl certs and dotnet apps on linux. |
I have same issue with WSL2. my app is running on wsl2 and bruno is not able to make request. Postman is working fine. Even browser is is working without problem. Someone know how to make it work ? Error is: |
@helloanoop I really think @skyd0me comment is insightful, it is probably some IPv6 config that bruno is missing. |
Got this error when building out a small web server using sockets. I was using Edit: Just on Win11, not using WSL2 or anything. |
Just to chip in, I get Insomnia works for localhost requests. |
I found a post which is saying that insomnia is doing an fallback implementation:
|
I made it work with wsl2 changing http://localhost:port to http://[::1]:port. it can be quick fix until devs implement ipv6 lookup |
fix(#124): resolve all *.localhost to localhost, and fix ipv6 issue
fix(#124): Improve localhost handling, add cache for ipv6 & ipv4 check
I think we may have finally solved this. The fixes are live in @rfoel @julianhirt @fabioduque @Epick362 @jrc03c @ajcarrillo @skyd0me @zarnautovic @Sleitnick @azivkovi @SandeepPoojari07 @mkornblum @nomad483 @Fancman @janos-r @notfounnd @joshangehr Can you test this and react with ❤️ if the fix works |
It works very well now, thanks @BrandonGillis |
@helloanoop Thanks for reaching out, but v1.3.2 still didnt fix it for my case. Website is running under WSL2 and in Insomnia I didnt change anything to make requests work. I am attaching screenshots of Bruno, Insomnia and proof that I am using right version. |
Hello @Fancman, I see that your url is using *.local, unfortunately the fixes we've made are for *.localhost, that's why you're still encountering the issue, anyway we can easily add support for *.local. As a last test, would you mind doing the same test with Postman and see if it works? Thank you! |
I changed website configuration on *.localhost and it works now. Thank you |
@helloanoop I think we can add support for special TLD domain see RFC 2606, 2: https://www.rfc-editor.org/rfc/rfc2606#section-2 It would mean adding support for : For .local TLD it's a little more complicated see RFC 6762, 3 : https://datatracker.ietf.org/doc/html/rfc6762#section-3 Not sure what to do about that TLD, every special case about it I can find just use mDNS, but no special case that resolve to the loopback address, but with the PR #1140 that tries dns resolution first, maybe it's safe to automatically fallback to the loopback for that TLD? Edit : just saw that the local domain was in the hosts file, so it should have worked without any fallback. |
@Fancman just saw that you had the domains in your hosts file, so it should have worked. I will try to reproduce the issue you had with *.local, could you share exactly how it's setup on your machine, for example :
Thanks a lot! |
On WSL I installed apache2, created and enabled config for website which listens on 80 port:
|
Thanks for the detailed answer, that will help a lot to reproduce the issue! |
I believe for MacOS users this is still an issue right? I'm still getting the: "Error invoking remote method 'send-http-request': Error: connect ECONNREFUSED 127.0.0.1:3000" Request example: http://localhost:3000/dev/poc/1a9c4c0f-0ee2-4155-9848-1d047382c5a7 It is a serverless framework project. My Bruno version is 1.7.1 I have: Kind of sad because I really wanted to give it a shot to Bruno. |
I have the same issue. I'm using 1.6.1. I have an intel mac with Sonoma 14.3. In insomnia works well but bruno doesn't. This is my error! |
Same issue here macOS: 14.3.1 Trying to run a pre request script
The error given is
The application is running at 127.0.0.1:300. |
Can confirm this is still an issue unfortunately |
For @druxton-consid and the ones who continue to experiment the issue, I found 2 workarounds for a teammate that both works for us but I really prefer the second one:
|
This is still an issue in macOS for me, I managed to fix it by using For the CLI you can use the following: NODE_OPTIONS=--dns-result-order=ipv4first npx -y --package @usebruno/cli bru run This will make the Bruno CLI to use ipv4 name resolution first |
Bruno 1.12.3 Basically same thing happening with me. Trying to access http API running in container. Ran into the same problems of localhost vs 127.0.0.1 and in some cases my request went through but I've noticed my request with a json body just wont go through. Doing the same exact comand with cURL or using httpie works just fine. For reference, I tried the example in this API specifically https://docs.browserless.io/HTTP-APIs/pdf |
Bruno 1.19.0 I am unable to access my flask[async] server via http://localhost. It works with http://127.0.0.1. It works fine with curl |
On Windows 11 I was having the same issue, uninstalling and reinstalling solved the isssue. |
On Windows 11 after a fresh install of Bruno and running it the first time, I was having this issue. Not the greatest first impression, but simply closing the program and opening it again resolved the issue. |
Changing http://localhost to http://127.0.0.1 fixed the Bruno CLI for my situation (CLI specific issue only). Thank you! |
Does bruno work on localhost? I keep getting the following error when I send a request:
PS: My local server is running, I can call it with Insomnia, but not with bruno.
I'm on a Mac M1.
The text was updated successfully, but these errors were encountered: