Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insomnia rest client error

When I do a POST request I am getting this error. Error: connect ECONNREFUSED 127.0.0.1:3000. On the contrary, when I use postman it works.

This is the url: http://localhost:3000/users/sign_in

And this is my configuration:

JSON tab:

{"user": {"email": "[email protected]", "password": "clave12345"}}

Headers:

  • Accept application/json
  • Content-Type application/json
like image 226
Gabriel C Avatar asked Sep 06 '16 21:09

Gabriel C


People also ask

Is insomnia a REST client?

Insomnia is yet another popular, fast REST client that's available for Mac, Windows, and Linux. You can use Insomnia for testing RESTful as well as GraphQL APIs.

How do I add a client certificate to insomnia?

Insomnia supports PFX (Mac) and PEM (Windows and Linux) certificates. To import a new certificate, click Document Settings or Collection Settings then the Client Certificates tab.

Is insomnia better than Postman?

Whereas both tools show and parse responses, it's hard to see the actual request being sent. Insomnia provides access to raw HTTP traffic log through UI. With Postman, it's much trickier, you need to have Postman DevTools Console opened when making request. Insomnia has minimalistic, cute and simple UI.

How do I install insomnia on my Mac?

Open the menu Insomnia → Preferences and select the Plugins tab. Type insomnia-plugin-mastercard-auth in the npm-package-name edit box and click the Install Plugin button. The plugin is installed successfully if you see the name and version appear in the table.


1 Answers

I'm the developer of Insomnia, and would like to let you know that this problem has been fixed in a recent release.

The app will now first attempt an IPv6 lookup (usually ::1), then fallback to an IPv4 lookup (usually 127.0.0.1) on error. This now aligns with the behavior of the curl command line tool.

You can download the latest version here for Mac, Windows, or Linux.

like image 74
gschier Avatar answered Oct 05 '22 23:10

gschier