#Getting thrown error about failed fetch.

9 messages · Page 1 of 1 (latest)

languid pebbleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

gleaming basalt
#

and here is the file that im calling textConversion in to display it:

import React, { useEffect, useState } from "react";
import { textConversion } from "./api/test/textConversion/route";


function Reader() {
  const [htmlContent, setHtmlContent] = useState('');

  useEffect(() => {
    textConversion().then((html) => {
      setHtmlContent(html);
    });
  }, []);

  return(
    <div>
      <div dangerouslySetInnerHTML={{ __html: htmlContent }} />
    </div>
  )
}

export default Reader;
#

I feel like the issue is when i'm calling the other file, so i'm going to provide myu file structure just incase it might be that

prisma trail
#

dont fetch your own api's

gleaming basalt
#

thanks i'll check that out

gleaming basalt