question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Insomnia fail but curl works?

See original GitHub issue

I have the same problem, and I don’t have tokens in these requests like login endpoint. This request already was in my Workspace for a long time and always worked.

I’m also using in my local development server and the request doesn’t reach the server with Insomnia however in curl works normally.

  • OS Ubuntu 18.04 bionic x86_64 Linux 4.15.0-48-generic

  • Insomnia v6.5.1

Version 6.5.1
Shell 3.0.4
Node 10.2.0
V8 6.6.346.32
Architecture x64

libcurl/7.61.1 OpenSSL/1.1.0h zlib/1.2.11 nghttp2/1.29.0

_Originally posted by @davibusanello in https://github.com/getinsomnia/insomnia/issues/836#issuecomment-491852003_

Reproducing

  1. Define a POST request to a localhost or 0.0.0.0
  2. Define the JSON body is a login request
  3. Send the request
  4. Watching the server log, don’t received any request
  5. Also when this occurs I can’t cancel the request in Insomnia and need to close de APP
  6. curl request
curl --request POST \
  --url http://0.0.0.0:8000/api/v2/account/login \
  --header 'content-type: application/json' \
  --cookie language=en-US \
  --data '{
        "email": "58594da2aa84sssa09f6ae757e6b7c@lolololo.com",
        "password": "das3112Dada"
}'
  1. All worked well in curl

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
davibusanellocommented, May 16, 2019

6.5.3 works very well too! Thanks @gschier

1reaction
Gomahcommented, May 15, 2019

Works for me too, thanks @gschier !

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Question] Why does Insomnia fail but curl works? #836 - GitHub
Details. In Insomnia I see this error when executing a request: < HTTP/1.1 422 Unprocessable Entity < Server: Cowboy < Date: ...
Read more >
curl, API request works in Insomnia, but not in generated code ...
I have request in Insomnia. When I send it via Insomnia, no problemo. But when I generate source code for curl, it shows...
Read more >
I got a CORS error, now what? - DEV Community ‍ ‍
A CORS request is something only sent by the browser, I don't care if it works in postman, insomnia, or in curl, I...
Read more >
Linux Curl Command Help and Examples - Computer Hope
It is designed to work without user interaction, so it is ideal for ... This flag prevents curl from outputting that and return...
Read more >
Insomnia REST in practice - Medium
You may use command-line cURL and send a request from the ... I will use Spring Boot backend and React frontend to demonstrate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found