title: From HTTP request received json is chopped off
body: <p>I'm trying to receive a JSON in my endpoint and sometimes that works perfectly fine. Sometimes the JSON is randomly chopped off, so that the JSON unexpectedly ends. I also have to retrieve the data from the request object very weird like that.</p>
  <pre><code>JSON.parse(String.fromCodePoint(...req._readableState.buffer.head.data)).value;
  </code></pre>
  <p>I confirmed with a test server, that the data in question should just be in <code>req.body.value</code> like one would expect.</p>
  <p>My guess was that there is something wrong with <code>express</code> and that I need <code>body-parser</code>
  But I'm using express version 4.17.1 which should already include the express parser build on body-parser.</p>
  <p>I also declared it with</p>
  <pre><code>app.use(express.json({limit: '5mb'}));
  app.use(express.urlencoded({extended:false, limit: '5mb'}));
  </code></pre>
  <p>I'm no expert at the topic and would appreciate any help.</p>
  <p>Could the mistake be anywhere else?</p>
  <p>Can I try to explicitly declare for a specific endpoint to use the express parser?</p>
  <p>Any idea how to solve this?</p>
  <p>Thanks.</p>
  <hr />
  <p>Edit</p>
  <pre><code>    router.post('/route/', async (req, res) =&gt; {
          if (!req.auth(res, Object.values(globals.levels))) return;
          let data = JSON.parse(String.fromCodePoint(...req._readableState.buffer.head.data)).value;
          // Further logic
      });
  </code></pre>
  <p><a href="https://pastebin.com/ZVZZ59dB" rel="nofollow noreferrer">JSON</a></p>