Daniel Everett
Explore posts from serversKPCKevin Powell - Community
•Created by Daniel Everett on 9/8/2023 in #os-and-tools
Netlify and node js
42 replies
KPCKevin Powell - Community
•Created by Daniel Everett on 9/6/2023 in #back-end
Unable to fetch data from API (Node JS server)
I am trying to fetch data from my database through my node js, but I keep getting an error of
Error: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
, is there anything I can do to prevent this?
My code for the client side is: https://srcshare.io/64f7d7f6a897f132d4fe3c44
My code for the server is:
I am unsure of why this is happening, full stack is HTML, CSS, JS (Node & Express), and Supabase (Database)4 replies