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
1
vote
3 answers

How to get token without passing username and pass in url parameters?

In order to get token i post following request: http://example.com/wordpress/wp-json/jwt-auth/v1/token?username=MYLOGIN&password=MYPASSWORD and in response i get token - that's nice, but... what if i don't want to show username and login in…
Dariusz Sikorski
  • 4,309
  • 5
  • 27
  • 44
0
votes
0 answers

Error 404 not found using Insomnia and SpringBoot

Hi I'm learning SpringBoot and I'm trying to make a simple Microservice using Postgresql and SpringBoot, when I make a request (GET in this case) from Insomnia I get this response body: { "timestamp": "2023-08-22T16:25:43.756+00:00", "status":…
0
votes
0 answers

Insomnia POST - 400 Bad Request - "Request body parsing: invalid character '%' looking for beginning of value"

I'm new to using insomnia. I'm getting a 400 Bad Request error from a query. I'm working in Ubuntu, using Firefox, and using the DevTools to identify a POST Request and Copy the value as cURL. This is from gofundme.com. I've been looking around and…
David Beales
  • 295
  • 4
  • 18
0
votes
0 answers

How to increment a value with request chainning with insomnia?

I use the tag feature of insomnia (Function "Body Attribute - value of response body", filter "$.counter") to get the JSON value of the variable "counter" in the body of a response and to use it in the content for an another request. Now I would…
ipStack
  • 381
  • 1
  • 12
0
votes
0 answers

How to save the test result with insomnia?

I have created unit tests with Insomnia. I want to save the results on a hardisk: the content of the requests sent and received (with the headers) and the results of the "Tests Passed" section? How do I do this?
ipStack
  • 381
  • 1
  • 12
0
votes
0 answers

Inso CLI test fails because of timeout error

Im trying to test an endpoint for an API integration we are developing. When the request is sent, a webhook get data from an external API, check for any difference with our current DB, saves the new data in our DB, and then sends a message of "ok"…
Kairos
  • 1
0
votes
0 answers

Where to store json request example files in a Quarkus service and how to reference them so they can be found in a client via openapi import?

I'm having a Quarkus (3.1.0) Rest Service with large input objects. To improve the explanation of these objects I would like to deposit some JSON request examples. At the moment I'm placing them in resources/META-INF/resources/examples/[...] and…
jackattack
  • 75
  • 8
0
votes
1 answer

How to extract part of header location url as variable in insomnia

I need to extract part of header location url (ticket number) to use on another request in insomnia, but I have no idea how to get that. What I did so far was: First Request: https://domain-1.com Response Header Location:…
Kelson Batista
  • 406
  • 4
  • 25
0
votes
1 answer

Why does this request work in Insomnia/Postman but not Python Requests?

Here is the cURL command, works fine and returns data: curl --request GET \ --url 'https://api.reserveamerica.com/jaxrs-json/products/AK/1180246?prdId=2400&detailed=true&gal=14&fc=true&gad=2023-06-27&next=false&displayGISMap=true' \ --header…
Mike B
  • 5,390
  • 2
  • 23
  • 45
0
votes
0 answers

Changing count header in API but it's not changing response limit

curl "https://1xbet158657.top/LineFeed/Get1x2_VZip?sports=1&count=50&lng=en&tf=478&tz=3&mode=4&country=190&partner=7&getEmpty=true" ^ -H "authority: 1xbet158657.top" ^ -H "accept: */*" ^ -H "accept-language:…
0
votes
1 answer

Cluster description not yet available, why?

Hi i'm trying to run my spring boot application connected with mongo, it starts and connects to the database but as soon as I make a request from insomnia it throws these errors: 2023-05-24T10:46:37.023+02:00 INFO 21568 --- [nio-8080-exec-1]…
user20174493
0
votes
1 answer

Insomnia API Convert Document to Collection

On my local Insomnia client, I have a Design Document created falsely a while ago, which has hundreds of API requests I use frequently. It has environment variables set up for multiple folders. As I don't need the Design/Test function as in Design…
Dyson
  • 33
  • 5
0
votes
0 answers

Node Typescript: Prisma relation is not working

i have this following route: router.route('/create/:categoryIds?').post(admCheck, productController.createProduct) that can have multiple categoryIds to create the product. this is the controller interface: interface ProductQuery { …
0
votes
1 answer

Express server doesn't receive body of PUT request from browser, but works for REST client

I've run into an immensely confusing situation. I am attempting to write some JavaScript code to perform a PUT request to my Express backend server, but even though I am absolutely certain that the requests are being sent correctly, the backend…
Miguel Guthridge
  • 1,444
  • 10
  • 27
0
votes
1 answer

Curl works in insomnia but does not work in Postman or Mac Terminal

I am trying to execute the following curl in Postman, Insomnia and Local Mac Terminal. It works with Insomnia but does not work with Postman and my local terminal. curl --request GET \ --url…