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

GraphQL API Error 403 when using Apps Script or Python, fine using Insomnia

I am trying to access the Pulsar GraphQL API using Apps Script (Have also tried Python) however, it returns a 403 error each time. I have run the exact same query and variables through Insomnia, with the same API token and it returns the desired…
0
votes
1 answer

How to read a JSON file in a Heroku application

I have a flask app and I can run it locally with no problem. I can also run this flask app on Heroku if I remove the first three lines in my app.py and simply return a string (e.g., "Hello"). Therefore, I am mostly sure that the problem lies in the…
user2512443
  • 485
  • 1
  • 6
  • 20
0
votes
1 answer

Laravel embedded server changing ports

Good day, I'm having this problem with my laravel project, I didn't change anything and just made a postman request to my API and this keeps happening. I ran php artisan optimize, nothing changed. I updated my linux and nothing happened. I updated…
Rose Riyadh
  • 518
  • 6
  • 16
0
votes
1 answer

Certificate has expired error in Insomnia REST client

I'm using Insomnia REST client to work with api's. I want to connect to Git on gitlab/github but I have this error: Error: certificate has expired at TLSSocket.onConnectSecure (_tls_wrap.js:1501:34) at TLSSocket.emit (events.js:315:20) …
Mahdi Javaheri
  • 1,080
  • 13
  • 25
0
votes
1 answer

Error consuming API on localhost with Flutter

I'm trying to comnsumer API that is on my localhost with Flutter but it's giving the error "OS Error: Connection refused, errno = 111, address = 127.0.0.1, port..." I'm using the dartion package to run the api on localhost, and the API works fine…
artdart
  • 13
  • 4
0
votes
1 answer

Postman or Insomnia 'No body returned for response', what does this mean?

I have a stored procedure which returns a result set when run in SSMS, but when I try to run the equivalent GET call in Postman or Insomnia 'No body returned for response' is the error. I can't see any difference in my set up comparing to calls I…
Evan
  • 59
  • 2
  • 7
0
votes
1 answer

Problem from mongoose: populate is not a function

I have this code to create a new registration on RegistrationController, and the Registration Model const Registration = require('../models/Registration'); module.exports = { async create(request, response) { const { user_id } =…
user17580755
0
votes
0 answers

Why am i getting an error when trying to test a put request in insomnia?

Here is the code-- router.put('/:id', (req, res) => { // update product data Product.update(req.body, { where: { id: req.params.id, }, }) .then((product) => { // find all associated tags from ProductTag return…
0
votes
1 answer

Insomnia configure OAuth 2.0 grant_type password access token for other API calls

I am trying to embed OAuth 2.0 grant_type password access token to my insomnia client API calls but getting "Failed to fetch token url= state us=0" When we try below curl command its returning the access token. each time we have to copy access…
user1184777
  • 987
  • 2
  • 19
  • 38
0
votes
0 answers

Cookies must be enabled to use GitHub. (Insomnia + Codespaces)

I've been doing some tests with NodeJS from GitHub Codespaces. When I use Insomnia REST (I put the open port link from Codespaces) everything appears fine, I log in to GitHub from insomnia but when I do that, I get the following screen. Insomnia…
Abril
  • 1
0
votes
1 answer

How to get data from url into post request?

Any help appreciated. I've got an app that pulls data from google books api. From each book page, the user is able to leave a review. The path to the review is /review/${isbn Number}. Each page has a path based on the isbn. The review routes work…
hannahatl
  • 91
  • 1
  • 8
0
votes
2 answers

Can't create multiple values in mongo - Array of Objects

I'm trying to save multiple values on mongoDB in meetings field, this is my Schema: const MeetingSchema = new mongoose.Schema({ meetings: [ { name: { type: String, require: true, trim: true }, timer: { type: Number, require:…
SantGT5
  • 53
  • 4
0
votes
1 answer

Can't create multiple objects with MongoDB + Node

I am trying to create multiple objects with mongodb, mongoose and express (by using Insomnia). I have managed to create the first object, but when I try to create the following one it gives me the following error: { "success": false, "message":…
user16241255
0
votes
1 answer

Problems receiving POST variables from PHP

I have a function developed by PHP that at the moment all I want it to do is to return the value of the variable $_POST['token'] I tried: public function actionGetuserbytoken() { $data = json_decode(file_get_contents("php://input"), TRUE); $id =…
Daniel R
  • 27
  • 8
0
votes
1 answer

Get Cognito token using Insomnia with awscognitotoken plugin

I look for the Authorization token used by Cognito in order to put it in the header of my tests. I need to test some backend API. I am using Insomnia and the awscognitotoken plugin. However, I fail to configure it in order to get the token. Their…
Costin
  • 2,699
  • 5
  • 25
  • 43