Wow, thanks so much for all the suggestions, everyone! I tried the try-catch block and logging the full error, and it turns out it was a CORS issue. I added `{ mode: 'cors' }` like someone suggested, and it worked!
I also tested the endpoint with Postman, and it confirmed the server was fine. Still not sure why the error message was so vague, but at least it's fixed now.
Thanks again for all the help—you guys are awesome!
I also tested the endpoint with Postman, and it confirmed the server was fine. Still not sure why the error message was so vague, but at least it's fixed now.
Thanks again for all the help—you guys are awesome!
