From 3a627f6e19796081eb34b8c9561e093ff577e0b9 Mon Sep 17 00:00:00 2001 From: Julia Date: Wed, 15 Apr 2026 13:05:52 +0200 Subject: [PATCH 1/4] docs: update with troubleshooting for timeouts only in Insomnia --- app/insomnia/requests.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/insomnia/requests.md b/app/insomnia/requests.md index 10f9414b46..478bc7e1d1 100644 --- a/app/insomnia/requests.md +++ b/app/insomnia/requests.md @@ -204,3 +204,12 @@ See the following pages for the CLI flag and configuration options: - [Inso CLI overview](/inso-cli/) - [Inso CLI configuration](/inso-cli/configuration/) + +### Troubleshooting + +If you encounter request timeouts errors (400) only in Insomnia, the `Content-Lenght` parameter might be forcing the server to validate the content length against the body, and failing in case it mutates. + +To resolve the error, try the following: + +1. From your request's **Mock Header** tab, remove or deactivate the `Content-Lenght` parameter. +2. Click **Test** to see if the issue is resolved. From 87223f2dcecb4b967aaf0863681b13683eda63a3 Mon Sep 17 00:00:00 2001 From: Julia March Date: Thu, 16 Apr 2026 11:00:23 +0200 Subject: [PATCH 2/4] Update app/insomnia/requests.md Co-authored-by: Angel --- app/insomnia/requests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/insomnia/requests.md b/app/insomnia/requests.md index 478bc7e1d1..1d4e16224a 100644 --- a/app/insomnia/requests.md +++ b/app/insomnia/requests.md @@ -211,5 +211,5 @@ If you encounter request timeouts errors (400) only in Insomnia, the `Content-Le To resolve the error, try the following: -1. From your request's **Mock Header** tab, remove or deactivate the `Content-Lenght` parameter. +1. From your request's **Mock Header** tab, remove or deactivate the `Content-Length` parameter. 2. Click **Test** to see if the issue is resolved. From a36561f2943932bc2a34f6a15146afe140289196 Mon Sep 17 00:00:00 2001 From: Julia March Date: Thu, 16 Apr 2026 11:00:35 +0200 Subject: [PATCH 3/4] Update app/insomnia/requests.md Co-authored-by: Angel --- app/insomnia/requests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/insomnia/requests.md b/app/insomnia/requests.md index 1d4e16224a..5c4d105530 100644 --- a/app/insomnia/requests.md +++ b/app/insomnia/requests.md @@ -207,7 +207,7 @@ See the following pages for the CLI flag and configuration options: ### Troubleshooting -If you encounter request timeouts errors (400) only in Insomnia, the `Content-Lenght` parameter might be forcing the server to validate the content length against the body, and failing in case it mutates. +If you get a `400` request timeouts error in Insomnia, but the same request works with cURL, it may be due to the `Content-Length` header. Insomnia might be sending a fixed `Content-Length`, causing the server to validate it against the body, and failing if they don't match. To resolve the error, try the following: From 055adfd5a9298d3320c16f14b622507343c37786 Mon Sep 17 00:00:00 2001 From: Julia Date: Thu, 16 Apr 2026 12:01:55 +0200 Subject: [PATCH 4/4] docs: move troubleshooting info under the FAQ --- app/insomnia/requests.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/insomnia/requests.md b/app/insomnia/requests.md index 5c4d105530..a9afd9398a 100644 --- a/app/insomnia/requests.md +++ b/app/insomnia/requests.md @@ -63,6 +63,14 @@ faqs: {% raw %}https://api.example.com/users/{{ user_id }}{% endraw %} ``` For detailed usage examples, go to [**Pre-request scripts**](/how-to/write-pre-request-scripts/). + - q: Why does my request return an error in Insomnia but succeed with other tools? + a: | + It may be due to the `Content-Length` header. Insomnia might be sending a fixed `Content-Length`, causing the server to validate it against the body, and failing if they don't match. To resolve the error: + + 1. Go to your request's **Mock Header** tab. + 2. Remove or deactivate the `Content-Length` header. + 3. Click **Test** to see if the issue is resolved. + --- ## How do I create requests in Insomnia? @@ -204,12 +212,3 @@ See the following pages for the CLI flag and configuration options: - [Inso CLI overview](/inso-cli/) - [Inso CLI configuration](/inso-cli/configuration/) - -### Troubleshooting - -If you get a `400` request timeouts error in Insomnia, but the same request works with cURL, it may be due to the `Content-Length` header. Insomnia might be sending a fixed `Content-Length`, causing the server to validate it against the body, and failing if they don't match. - -To resolve the error, try the following: - -1. From your request's **Mock Header** tab, remove or deactivate the `Content-Length` parameter. -2. Click **Test** to see if the issue is resolved.