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.

Your client has issued a malformed or illegal request. That’s all we know.

See original GitHub issue
  • Insomnia Version: Version 6.4.2 (6.4.2.2759)
  • Operating System: macOS Mojave (10.14.4)

I’m using Insomnia for an API developed in Node.js with the help of Sails.js. After every single deployment to our production system, randomly endpoints are throwing the error 400. That’s an error - Your client has issued a malformed or illegal request. That’s all we know..

The failing endpoints are not always the same, and if I compare the local request headers and responses from staging and production, there’s no difference to find at all.

Here’s a copy of the request timeline with sensitive information blanked:

* Preparing request to http://******/movies
* Using libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
* Disable timeout
* Enable automatic URL encoding
* Enable SSL validation
* Enable cookie sending with jar of 0 cookies
* Hostname ****** was found in DNS cache
*   Trying *****...
* TCP_NODELAY set
* Connected to ***** (*****) port 80 (#22)

> GET /movies HTTP/1.1
> Host: *****
> User-Agent: insomnia/6.4.2
> x-access-token: ******
> Content-Type: multipart/form-data; boundary=X-INSOMNIA-BOUNDARY
> Accept: */*
> Content-Length: 25

| --X-INSOMNIA-BOUNDARY--

* We are entirely uploaded and fine
* HTTP 1.0, assume close after body

< HTTP/1.0 400 Bad Request
< Content-Type: text/html; charset=UTF-8
< Referrer-Policy: no-referrer
< Content-Length: 1555
< Date: Tue, 07 May 2019 19:02:46 GMT


* Received 1551 B chunk
* Closing connection 22

It’s a Google error, at least that’s how it’s rendered within the response preview in Insomnia, and I’m hosting the API within Google Cloud via Kubernetes.

The only difference between my local development and the deployment on staging or production is the NGINX server in between to upstream the express.js server.

It’s probably not an Insomnia issue, but maybe you’ve experienced something similar and have some tips for me to resolve the issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
bulletinmybeardcommented, May 7, 2019

That is so true 😄

The cause of the issue was simply my stupidity by cloning existing endpoints and changing the request method, but not how I want to send the data, damn.

Cheers

0reactions
gschiercommented, May 7, 2019

Hehe, sometimes you just need another set of eyes 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix: Your client has issued a malformed or illegal ...
The major ways to Fix: Your client has issued a malformed or illegal request are to verify the File size, Recheck URL format,...
Read more >
App Engine : 400 - Your client has issued a malformed or ...
Your client has issued a malformed or illegal request. That's all we know. GET Request is not supposed to have a request body...
Read more >
400. That's an error. Your client has issued a malformed or ...
Your client has issued a malformed or illegal request. That's all we know.
Read more >
Fix: YouTube Error 400 "client has issued a malformed or ...
The error message is rather ambiguous and reads “Your client has issued a malformed or illegal request. That's all we know”.
Read more >
Your client has issued a malformed or illegal request [Fixed]
The error is mainly caused by shared cookies between YouTube and other extensions. If this action doesn't solve the problem, you need to...
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