[BUG] Insomnia fail but curl works?
See original GitHub issueI 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
- Define a
POSTrequest to alocalhostor0.0.0.0 - Define the JSON body is a login request
- Send the request
- Watching the server log, don’t received any request
- Also when this occurs I can’t cancel the request in
Insomniaand need to close de APP curlrequest
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"
}'
- All worked well in curl
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:17 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

6.5.3 works very well too! Thanks @gschier
Works for me too, thanks @gschier !