title: React fetch gives me a truncated JSON response
body: <p>I'm facing an issue in React fetch, it gives me an incomplete response, so when I parse the response into JSON, it was returning me an error.</p>
  
  <p>Code:</p>
  
  <pre><code>export default async (url, body = null, method = 'GET') =&gt; {
    let config = {
        method,
    };
    try {
        const response = await fetch(url, config);
        if (!response.ok) {
            throw new Error(response.statusText);
        }
        return await response.json();
    } catch (error) {
        console.warn(error);
        throw error;
    }
  };
  </code></pre>
  
  <p>Response log:
  <a href="https://i.stack.imgur.com/hGRi1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hGRi1.png" alt="Response log"></a></p>
  
  <p>Does fetch has a maximum response size? If yes, how to increase it?</p>