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
3
votes
0 answers

Insomnia Rest Client - Get header from response with multiple values

I'm trying to parse the Set-Cookie header from a response. I do, Response - reference values from other request's response. Header - value of of response header. Request - .. Header name - Set-Cookie and the choices I get are: Choices are [ …
ER H
  • 74
  • 2
  • 7
3
votes
2 answers

How to filter a HTML API response using XPath so that Requests can be chained in Insomnia REST Client

If this is the raw data I can see in an API response from a simple GET request made on Insomnia to a website:
matt-d
  • 71
  • 5
3
votes
1 answer

How to send a form via postman/insomnia http client on a Laravel controller?

I have a Controller with the following code class FormController extends Controller { public function submit(Request $request) { dd($request); } } I remember about csrf protection and I've found my csrf token on my frontend.…
Aleksej_Shherbak
  • 2,757
  • 5
  • 34
  • 71
3
votes
1 answer

Different Responses from Insomnia and Postman for a WebRequest

I am using Postman Tool and Insomnia(Hurl.eu) Tool to make a Particular webRequest. I get the Response 200 from Insomnia but i am getting 403 Forbidden error from Postman.Here are the Preview messages from both Postman: POST /ccadmin/v1/login…
Vijay Manohar
  • 473
  • 1
  • 7
  • 22
2
votes
1 answer

Insomnia: how do I reference a windows environment variable in Insomnia?

I want to use a windows environment variable in Insomnia. There is an option to read OS properties, which I thought would allow me to use windows env variables but it's not obvious how. In the below I am trying to add "testWE" and I am trying using…
Courvoisier
  • 904
  • 12
  • 26
2
votes
0 answers

Tried deploying the nodes application using heroku

I am getting these errors when I try to send a POST request using Insomnia. Can someone help me out with this
2
votes
1 answer

Node.js POST request working correctly in local but always giving 404 not found after deployment

I want to create an endpoint where others can post the data and then I can use it for further operations. I am using lambda and serverless framework for deployment. It is working fine in my local but each time I deploy it gives a 404 not…
2
votes
0 answers

Can Insomnia convert an uploaded JSON to send a JSON body instead of a file?

I'm attempting to send a large JSON file to the system. The endpoint is expecting a JSON body, but if I copy paste the full JSON file into a JSON body, Insomnia crashes. I thought of doing the "Multipart" option, but the file is transmitted as is,…
Mel Habip
  • 21
  • 2
2
votes
1 answer

Variable $varname does not appear in any graphQL query

I'm trying to reference a variable in my graphql query. I thought this was going to be straightforward but I'm obviously missing something. Can someone educate me on this? mutation { requestAccessToken( input: { grant_type:…
Tulio Elputo
  • 35
  • 1
  • 4
2
votes
1 answer

SSL certificate problem: unable to get local issuer certificate insomnia

I'm working on a simple API with auth, made on .NET, and would like to use Insomnia to make some tests on it. The API uses OAuth 2 Client Credentials, and this is were I get in trouble. I get the following error: Failed to fetch token…
2
votes
2 answers

How to use insomnia with django?

running django locally and with firefox, i login with http://localhost:8000/admin/ and after that i can access http://localhost:8000/myCustomApi successfully. on insomnia every time i login with http://localhost:8000/admin/ i get {"code": "csrf",…
rado
  • 5,720
  • 5
  • 29
  • 51
2
votes
1 answer

I need to add basic auth to my sanctum api

I'm using laravel sanctum and I add to middleware to my route: Route::group(['middleware' => 'auth:sanctum'], function () { Route::post('/sms-log',[SmsLogController::class, 'store'] ); }); But insomnia wants me to sign in: insomnia_ss when I…
2
votes
1 answer

Insomnia new project error: could not expand on reference master

when i create new project with insomnia and commit and push it into my bitbucket everything is ok when my teammate want to connect our openapi3 project cant. the error is : could not expand on reference master How to reproduce it: he create new…
saber tabatabaee yazdi
  • 4,404
  • 3
  • 42
  • 58
2
votes
2 answers

How to disable hostname verification on Insomnia

I have only just begun using Insomnia for testing some REST calls. I got a certificate issue because the Common Name of my certificate on the server does not match the Hostname that is used to reach the server. I want to know, if there is a way I…
Anish
  • 31
  • 1
  • 3
2
votes
1 answer

Authenticating to Revolut API

I am trying to follow Revolut's tutorial for authenticating to their API and I'm stuck at requesting a reusable access token. So far I've managed to: 1. Create public/private keys 2. Upload public key 3. Sign a jwt with the generated client_id 4.…
Radu
  • 524
  • 1
  • 6
  • 19
1 2
3
13 14