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

How to set CORS on Flask API and VUE3?

I have my front end done in Vue3 and using Axios. Accessible from https://front.my_domain.com/auth/login. The Axios code producing the call is: call_service(service_name, data = {}, options = {}) { const token = localStorage.getItem('s:Token') …
Javi M
  • 97
  • 9
0
votes
1 answer

How do I pass an array of strings to a FastAPI post request function?

I have this code for a FastAPI app. Right now it's just supposed to take in an array of strings and return them. from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: list[str] app =…
ChristianOConnor
  • 820
  • 7
  • 29
0
votes
0 answers

NextAuth File/Plugin for Postman/Insomnia

Does anybody know where can I find a file or a plugin for Postman or Insomnia to do a login request via NextAuth? I need to login into a webpage, which is protected by the NextAuth. The login works with username and password, without 2FA but with…
wilkis
  • 3
  • 4
0
votes
0 answers

Trying to set up Mongodb as a Docker image to connect to a Sveltekit app through localhost REST API

I'm looking to build a Sveltekit app with Mongodb on the backend. I want to run mongodb as a docker image. I don't want to use Atlas or any any other db as a service type things. The issue is that almost all the tutorials I found online only show…
ChristianOConnor
  • 820
  • 7
  • 29
0
votes
1 answer

How to extract part of RAW response body (not JSON!) in INSOMNIA Rest Client

I am using the Insomnia REST client to debug some mobile API. I need to extract part of one value in the response body and put it into a second request. Request The request is an Oauth request for an authorization token. This request is normally…
Robert
  • 1,579
  • 1
  • 21
  • 36
0
votes
0 answers

DELETE request works from insomnia/postman but not from the frontend

DELETE request give 204 response code from Insomnia/Postman, But from the frontend it gives error for Delete request. Please find my Service code below : public bool Dissociate(string envCode, string serialNumber, string gatewayType) { …
Philip
  • 85
  • 4
0
votes
0 answers

Why don't I get anything from this API call?

I'm trying to get a the JSON received from this API…
0
votes
0 answers

How to change key type from text to file like in Postman but in Insomia?

Aloha, Question: How to change the key type from text to file like in Postman but in Insomnia? Reference From Postman Problem: Cannot test POST on localhost:8080/predict/upload. Reason: Testing back-end to see if file type is jpeg. Expectation:…
0
votes
0 answers

Change the request body

In Insomnia test suite, is it possible to add or update the request body? For example, I have get/post request in a collection which takes a json as request body, I like to test the request by changing this json. By default in test suite I can…
Swamy
  • 463
  • 2
  • 9
  • 20
0
votes
1 answer

requests.exceptions.JSONDecodeError: Extra data: line 1 column 5 (char 4)

newb to python and requests here. I'm working with an API trying to get a JSON response but am only able to get the text version of it. My line of resp_random_1_100_int.json() returns the error: *** requests.exceptions.JSONDecodeError: Extra data:…
Cflux
  • 1,423
  • 3
  • 19
  • 39
0
votes
0 answers

Insomnia Client only return `Server is up and running.`

I have a simple API server running on Node.js/Express like below: server.js const express = require('express'); const cors = require('cors'); const app = express(); var corsOptions = { origin: 'https://localhost:8081', } //…
Maulana Adam Sahid
  • 375
  • 2
  • 4
  • 12
0
votes
0 answers

How to test an Appsync in Insomnia for IAM authenticated Query

I have an Appsnyc query which I would like to test via clients like Insomnia or Postman as I want to check what header parameters work when trying to access the appsync via client side code The Appsync query has IAM authentication. In header…
Manushi
  • 597
  • 1
  • 7
  • 26
0
votes
1 answer

How to connect Insomnia to local Fauna database

I have a local Fauna DB and I can interact it with it using Fauna shell and using my own programmatic interface However I am trying to use the Insomnia GUI and I cannot work out how to connect This is my Fauna endpoint information Admin endpoint:…
Psionman
  • 3,084
  • 1
  • 32
  • 65
0
votes
0 answers

Insomnia doesn't return the status 201 in the api documentation

..response:201 { "RegisteredUser": { .. I'm having a problem with insomnia's documentation I have this on insomnia, with 200 it goes well, 201 keeps showing me 200. Can someone tell me how do I change to 201?
0
votes
1 answer

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'DescAnunUser' cannot be null

I'm working with Laravel on my school project (beginner in programming), and I have an error that I don't know how to solve. So when I try to add/update something in my table, the following error occurs: Insomnia POST the table, model and…
Shalgun
  • 3
  • 1