Hello Jason.
I took your advice and used Postman and ThunderClient to send requests to my backend, I fixed some routes stuff and it works perfect, the response comes as I expect (Json or text format, tested both).
Sadly, when I test the request and response in the browser with my render static-site I’m still getting the same error “SyntaxError: Unexpected end of JSON input” in this line in my React component:
const resJson = await res.json();
I was checking this community forum and found someone who had the exact same issue like me, the thread is in the following link:
As he mentions, he changed some stuff on his proxy on the frontend package json, unfortunately he doesn’t specify what actually did he change. I asked gemini and google what is that proxy but i don’t understand quite well what is the purpose of that proxy in order to know if that’s where my error comes from.
I also tried to contact him on this forum but i guess it is not possible, there is no way to land messages between members, could be a future feature, perhaps. .
Jason, do you have any clue or any blog where I can read about this proxy thing and figure this out?
Thanks in advance.
Carlos.