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

Can't post to mongo db, "Error: ValidationError: name: Path `name` is required.,"

I am trying to post something to mongodb, my models file looks like this and i have input all of the required fields in insomnia but for some reason it's still not working. const mongoose = require('mongoose'); const Schema =…
DStewart
  • 73
  • 4
1
vote
1 answer

Unsplash API - Access specific photo by id

I want to access a specific photo via the Unsplash API and a given photo ID. Unfortunately my approaches didn't succeed and it seems that no other person on google tried it yet. Prerequisite Register at unsplash developers to get your access…
vii
  • 395
  • 4
  • 12
1
vote
1 answer

Flask: read scalaris file from request

when I picked the flask the json file I used this line for it: data = request.get_json () is it possible, and if so how, how to load uploaded files in request? Eg .sclaris .xml .odt files etc. I send this type of file by Insomnia
Cierniostwor
  • 339
  • 2
  • 4
  • 15
1
vote
1 answer

Insomnia: invalid csrf token

Even after providing all valid credential and token refresh "insomnia" keep throwing "invalid csrf token" token in response. I tried refreshing token, restart and changing different credentials nothing works.
Techflash
  • 707
  • 7
  • 15
1
vote
1 answer

insomnia bitbucket git configuration about authentication token

Today, i had problem with Insomnia git configuration. Insomniais programming tools for api documentation. and need to manage with git version controller. so i created a new repository and unlike a github i cant configure it as you see in image…
saber tabatabaee yazdi
  • 4,404
  • 3
  • 42
  • 58
1
vote
1 answer

"syntax error at or near \"SET\"" when creating a user using node with Postgresql

I'm trying to translate my old mysql app to Postgresql, it was very difficult to connect to the server, but when i think it worked, this message appears on insomnia. The message I tried using different methods that i found on Google but they didn't…
1
vote
1 answer

sequelize rest api updating boolean more than one time

I am developing an application using a node.js and express REST API to manage a sqlite database backend. I am using sequelize as an orm. Until now everything was working fine but I discovered a strange error which I cannot resolve. I have a game…
Patrick Hener
  • 135
  • 5
  • 16
1
vote
0 answers

JSON is sent via Insomnia, but PHP receives an empty array

I'm using Insomnia Rest to simulate my frontend JSON data being sent to backend. I tested with Postman as well and the issue is the same: I send JSON data via POST to backend and, when I print what has come in the $_POST variable, it's empty. I…
Raphael Alvarenga
  • 868
  • 1
  • 7
  • 13
1
vote
0 answers

Filter by hostname is not working in my WireShark

I am using RESTFul client Insomnia to test my GET request. I get 500 internal server error as shown below * Preparing request to https://sample.azure-api.net/masterData/carTypes * Using libcurl/7.57.0-DEV OpenSSL/1.0.2o zlib/1.2.11…
kudlatiger
  • 3,028
  • 8
  • 48
  • 98
1
vote
1 answer

How to send byte array (Blob) to GraphQL mutation

We have a GraphQL mutation with a byte array (Blob) field. How can I use tools like Insomnia or GraphQL playground to send byte array data to test the API? mutation { saveSomething(something: { contentByteArray: [97, 110, 103, 101, 108, 111] …
angelokh
  • 9,426
  • 9
  • 69
  • 139
1
vote
2 answers

Working curl query to GraphQL gives 403 in Insomnia and Postman

I followed the first part of this tutorial (until code snippet 4) on GraphQL and serverless. After deploying the serverless application to AWS I query GraphQL using curl, as shown in snippet 4 of the tutorial and get a response as expected: $ curl…
Nicolai Lissau
  • 7,298
  • 5
  • 43
  • 57
1
vote
2 answers

POST with Nodejs express

Unfortunately I get an empty body: {} in the request object, when I POST something to my api via Insomnia (configuration Form Form URL Encoded Header Content-Type: application/x-www-form-urlencoded): Here is my express code: const express =…
sunwarr10r
  • 4,420
  • 8
  • 54
  • 109
1
vote
2 answers

How do i split a 6 gb CSV file into chunks using php

I'm a beginner level developer learning php.The task that i need to do is upload a 6gb CSV file which contains data, into the data base.I need to access the data i.e reading the file through controller.php file and then splitting that huge CSV file…
Hemanth
  • 33
  • 1
  • 8
1
vote
1 answer

REST post informations not received with multipart/form-data

Using Restify & Mongoose, I built a basic REST API. Everything is working fine as long as I send JSON content with application/json as a content. But now I need to send an image along with content, so I switched to multipart/form-data for a specific…
EmmanuelBeziat
  • 664
  • 8
  • 23
1
vote
1 answer

FCM push notification to topic does not work and result only message id

It's used to work when I push to TOKEN. But when I try to push notification to topic, something does not go well. I use Insomnai (for test) in this case. Please see image bellow. When I push to TOKEN, I get something like this. …
lyhong
  • 947
  • 1
  • 13
  • 23