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
1 answer

Insomnia : generated code doesn't return the same result as insomnia

The issue happens when searching on https://forum.mobilism.org An account is needed, so I created one and then created a request in insomnia to login on this url : https://forum.mobilism.org/ucp.php?mode=login The cookies are then stored by…
1
vote
1 answer

Recover review list from Google My Business API

I'm trying to recover list of review from google to displayed them on a customer's website. I discovered this API and i thought I could use it but I'm having some issue doing so. Customer asked access to this API and then gave me oauth2…
1
vote
0 answers

Insomnia Github Push does nothing

I am not the best at using Git but I cant figure out why pushing my Api from Insomnia to github does not work I logged in my GitHub account and this appeared: I used commit first (As you can see from the 3 commits I did) First push was successful…
Lerex
  • 313
  • 1
  • 9
1
vote
1 answer

POST request with image file as body using fetch API

I have the problem that I want to crop an image from a HTML canvas and then send this image from the browser to a REST API that expects an image file in the request body. Since I want to have the frontend app as lightweight as possible, the whole…
Matthias Wolf
  • 75
  • 1
  • 1
  • 6
1
vote
0 answers

Getting an Insomnia Error while using Git Sync and Bitbucket server

Our team is trying to setup a repository to share all the API tests. We decided to host the repository ourself with Bitbucket Server, but end up with an error while using the Git Sync function in Insomnia. We followed the documentation to get the…
MHV
  • 13
  • 5
1
vote
2 answers

Get request not found, attempt to set ?value parameters inside a url

I did this get, with the intention of returning the amount of clients that the application needed, but insomnia only returns that it didn't find the route: server.get('/consultclients?amount=1', (req,res) =>{ let amount = req.params.amount; return…
APACHE
  • 11
  • 1
1
vote
0 answers

Express Graphql

I'm trying to learn graphql. I didn't find any good course witch will help me to learn it. So i started building it with little examples. In this moment i'm getting error when i'm trying to open http://127.0.0.1:3000/graphql. it's telling me…
BasDriver
  • 171
  • 3
  • 9
1
vote
0 answers

Is it possible to generate a junit.xml test report file with Insomnia CLI just like Newman does?

When using Postman, you can specify tests for each of the requests in your collection, then, when executing the collection in a CI/CD environment through Newman, you can specify a command line like this: newman run my-collection.json -r cli,junit…
Pedro Henrique
  • 680
  • 7
  • 22
1
vote
0 answers

EXPRESS - Some API endpoints are not found despite valid request

I have a simple Reddit clone project written in express. I noticed that some endpoints are throwing errors despite having a correct URL. Here is my code. App.js app.use("/api", router); Router router.route("/register") …
orangesheep
  • 195
  • 3
  • 13
1
vote
2 answers

Laravel Auth FormRequest works when accepting JSON, fails when accepting form data

This is very strange. I have an endpoint that accepts a PUT request. namespace App\Http\Requests; use Dingo\Api\Http\FormRequest; class UpdateTestRequest extends FormRequest { public function authorize() { return true //…
Simon
  • 2,484
  • 6
  • 35
  • 54
1
vote
1 answer

API keeps running even after success

I have an API the uses sequelize to edit a record: router.put("/editTenant/:id", async(req,res) =>{ const id = req.params.id const tenant = await Tenants.findByPk(id); Tenants.update({ tenantName: req.body.tenantName, industry:…
1
vote
0 answers

Insomnia generated request code doesn't work

I'm trying to send a login request to a server that uses cookies. The request works perfectly in Insomnia client. My request looks like this: POST: https://website.com/... Headers: * accept: application/json, text/plain, */* * accept-language:…
koraljko
  • 79
  • 8
1
vote
1 answer

How can I solve an 404 not found error with POST request using Insomnia and WordPress API?

I'm using WordPress API and testing my routes with Insomnia software. Everything works good with my GET routes but not with my POST routes. I have 2 POST routes: one to register and one to log in. I also use JWT token. Here is my POST route to log…
1
vote
1 answer

Who drop Secure Cookie in PHP with apache2 in HTTP?

I am learning session and cookie configuration of php. I set up a php running in apache2 server in my localhost. I try to use a tool insomnia to send a GET request to the end point(http://localhost:8000/test.php) with the script…
ikhvjs
  • 5,316
  • 2
  • 13
  • 36
1
vote
0 answers

gitea server is running. and made a test organization there. When I try to do a get request to see the list of organizations, i get a 404 error

As mentioned in the title. I have a gitea server running and have made a test organisation on it. I am then doing a get request which would list all the organisations, But I get a 400 page not found error. The pictures below show The gitea server…
ebrahim
  • 105
  • 1
  • 7