title: FetchError: invalid json response body at... > reason: Unexpected token < in JSON at position 0
body: <p>I'm trying to fetch data from the OpenSea API but keep getting the following error:</p>
  <blockquote>
  <p>FetchError: invalid json response body at
  <a href="https://api.opensea.io/api/v1/assets?format=json&amp;order_direction=desc&amp;owner=0x0f91b5a27c51dcad415eafb190e8235e987dcdcb" rel="nofollow noreferrer">https://api.opensea.io/api/v1/assets?format=json&amp;order_direction=desc&amp;owner=0x0f91b5a27c51dcad415eafb190e8235e987dcdcb</a>
  reason: Unexpected token &lt; in JSON at position 0</p>
  </blockquote>
  <p>Here is my current code:</p>
  <pre><code>export async function getServerSideProps() {
    const res = await fetch(`https://api.opensea.io/api/v1/assets?format=json&amp;order_direction=desc&amp;owner=0xc3b9d43afbb3dcc92e19703480f37070692494e1`)
    const data = await res.json()
  
    return { props: { data } }
  
  }
  
  const Page = ({data}) =&gt; {
    return (
      &lt;&gt;
        {data.assets.map(asset =&gt; (
          &lt;p&gt;{asset.id}&lt;/p&gt;
        ))}
      &lt;/&gt;
    )
  }
  
  export default Page
  </code></pre>