Questions tagged [insomnia]

Insomnia is a desktop client for interacting with HTTP-based APIs.

Insomnia is a desktop client for interacting with HTTP-based APIs. It runs on macOS, Windows and Linux.

Web page: https://insomnia.rest/

203 questions
6
votes
0 answers

Send recaptcha response through REST client

Are there any ways to pass recaptcha response token through API request as header value using Insomnia or Postman clients? I know that response token is generated after recaptcha widget is loaded and user interacted with it. And response token is…
Tarasovych
  • 2,228
  • 3
  • 19
  • 51
5
votes
1 answer

Can I connect to a GraphQL Subscribtion using Insomnia REST client?

Insomnia now supports WebSockets. Therefore I was hoping that I can also use it to test GraphQL Subscriptions, since they are also using WebSockets. I created a GraphQL request to open a new Subscription, but I always get the following response: { …
eddex
  • 1,622
  • 1
  • 15
  • 37
5
votes
1 answer

Export from Insomnia on Linux not working

when I attempt to export data (I want to export all my requests and import them on a different PC) as per the manual (https://docs.insomnia.rest/insomnia/import-export-data), I keep failing to achieve that. I suppose it should store the export on my…
5
votes
0 answers

Insomnia same request with different data

I'am trying to write unit tests for each one of my requests in insomnia. Is there a way to access the request in javascript and modify the body/query params? I want to test the different edge cases. Are the insomnia js functions documented…
luffy
  • 2,246
  • 3
  • 22
  • 28
5
votes
1 answer

Deno post method empty request body

I am currently developing a proof-of-concept REST api app with Deno and I have a problem with my post method (getAll et get working). The body of my request does not contain data sent with Insomnia. My method : addQuote: async ({ request, response…
Damien Millot
  • 63
  • 1
  • 6
5
votes
0 answers

Http TLS handshake error when using InfluxDb and Telegraf for Grafana

I generated certificate and key (.crt and .key) files with the OpenSSL tool, and set the generated file paths to these files in the influxdb.conf file. When I run my Telegraf service, the Influxd logs: http: TLS handshake error from [::1]:63020:…
Jure Beton
  • 137
  • 1
  • 9
5
votes
1 answer

Fiddler doesn't capture request from Insomnia but does capture rquest from Postman

Just sending a simple POST request to https://httpbin.org/post. Fiddler captures the request when I send it from Postman, but doesn't when I send it from Insomnia. Is there some setting I need to enable either in Fiddler or Insomnia?
MyDisplayName
  • 223
  • 5
  • 12
5
votes
1 answer

UnhandledPromiseRejectionWarning trying to import json Swagger to insomnia

I'm trying to import a Json file from Swagger to insomnia. To do that I use this project from NPM (I'm not familiar with NPM): https://www.npmjs.com/package/insomnia-importers I have npm v6.5.0 and node v11.9.0 installed. I ran this command:…
AleGallagher
  • 1,745
  • 7
  • 30
  • 40
5
votes
2 answers

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":…
Gabriel C
  • 263
  • 1
  • 4
  • 8
4
votes
1 answer

Google Analytics 4 (GA4) measurement protocol (debug view) not working

I am trying to send an event to Google Analytics 4 with measurement protocol, via Insomnia. I would like it to show up in GA4 debug view, so I've added the debug_mode parameter and changed the POST endpoint to /debug/mp/collect instead of…
4
votes
0 answers

Insomnia how to upload file and json data

How can I test data like this { "slug": "some-slug", "poster": "here must be image", "translations": { "ge": { "title": "geo text ", "shortDescription": "get text", "description": "geo text" …
Boychik
  • 61
  • 7
4
votes
1 answer

Whenever I'm going to login or register with strapi 405(method not allowed) message come up

Whenever i'm sending request to strapi for login and register I'm getting error like 405
Sayan Mondal
  • 43
  • 1
  • 5
4
votes
1 answer

How to send a POST request with parameters in Insomnia?

I have the following POST method definded in OpenAPI: post: tags: - Courses description: Creates a new Course and add it to specified Program parameters: - name: Program in: path description: Specified Program to add the new course…
Roland Deschain
  • 2,211
  • 19
  • 50
3
votes
2 answers

curl, API request works in Insomnia, but not in generated code for curl

I have request in Insomnia. When I send it via Insomnia, no problemo. But when I generate source code for curl, it shows me this. curl --request POST \ --url URL \ --header 'Authorization: bearer XXX' \ --header 'content-type:…
genderbee
  • 203
  • 2
  • 10
3
votes
1 answer

How to get the bearer token using selenium python?

How to get this bearer token in selenium ? When I am using an API client like Isomnia, I found that it can automatically get the bearer token after I have provided the cURL. However, when I am trying to get the bearer token with selenium, I found no…
1
2
3
13 14