title: object` ("[object Response]") cannot be serialized as JSON?
body: <p>I am trying to consume my api through code I am getting this error</p>
  <p><strong>object` (&quot;[object Response]&quot;) cannot be serialized as JSON</strong></p>
  <p>But when I call or use this api through browser I am getting response.</p>
  <p>here is my code
  <a href="https://codesandbox.io/s/naughty-platform-1xket?file=/pages/index.js" rel="nofollow noreferrer">https://codesandbox.io/s/naughty-platform-1xket?file=/pages/index.js</a></p>
  <p>I am consuming my api like this</p>
  <pre><code> console.log(&quot;-----&quot;);
    const cc = await fetch(&quot;https://1xket.sse.codesandbox.io/api/basecss/&quot;);
    console.log(cc, &quot;llll&quot;);
  </code></pre>
  <p><strong>API design</strong></p>
  <pre><code>export default async (req, res) =&gt; {
    const stylesheet = await (
      await fetch(&quot;https://www.****.com/asset/web/css/***-base.css&quot;, {})
    ).text();
    console.log(stylesheet, &quot;server&quot;);
    res.status(200).send(stylesheet);
  };
  </code></pre>
  <p>I am getting this console value on server. but when I am calling this api through code I am getting this error</p>
  <pre><code>object` (&quot;[object Response]&quot;) cannot be serialized as JSON. Please only return JSON serializable data types
  </code></pre>