Closed berkobob closed 3 years ago
Thanks rangav, I tried all the possible solutions on this page and none work. Connection Refused
Thanks rangav, I tried all the possible solutions on this page and none work. Connection Refused
Did you try this option?
use localhost:56752
and enbale preview features
settings
Yes, I did. Combinations of [::1] , 127.0.0.1, 0.0.0.0 with got, axios, preview features and nothing yet.
what backend application is yours? is it node
?
It's an ASP.NET Core 2.2 application, and it was working until a couple hours ago. All that has changed is that I restarted my computer.
thanks for sharing, will try and see if i can re-produce the issue here.
It's an ASP.NET Core 2.2 application, and it was working until a couple hours ago. All that has changed is that I restarted my computer.
Did you check its not a proxy issue?
Not sure about that. I am using a VPN, without it there would be no access at all to the api I'm querying. But this hasn't been an issue until today. All queries I have saved in the extension fail, complex, simple queries, all of them.
@steelvelveteen Did you check this vscode setting?
I was facing the same problem. in my case problem solved when I use only port in app.listen function in express app
app.listen(PORT, () => {
// ...
}) // like this
If you're using npm edit the dev script to have --host at the end
replacing localhost with [::1]
worked for me too http://[::1]:5173/
. I don't know where the problem lies but the ability to use `localhost' is needed - especially if yr cutting and pasting
I was resuming evaluating this client and guess what, got into this issue straight away. :facepalm:
Based on the aforementioned ideas, I tried all of these and nothing worked:
localhost
or 127.0.0.1
or [::1]
as the address (not the scheme or port, ofc)got
or axios
clientsOf course, it works:
cURL
codeContext:
Any other ideas, please :grey_question:
:partying_face: UPDATE It worked using [::]
as hostname and got
client.
So my API_URL
env var has now the value of http://[::]:8081/api
Here is an example when API_URL
env var has the value of http://127.0.0.1:8081
and axios
client is used.
If got
client is used, just the response is different, stating that "Connection was refused by the server".
But the Output entries are the same.
@Dfamilia Thanks. I'm on Linux, as mentioned before. Moving the project to another location doesn't solve the issue. The solution is to use [::]
.
Describe the bug I've written a very simple REST JSON server in Dart using Shelf. I can make requests via a browser or Postman but when using Thunder Client I get "Connection was refused by the server."
To Reproduce http://127.0.0.1:8081/ http://localhost:8081/
Expected behavior I would expect "200 Server running"
Platform:
Solution: