Cannot call my API from front end with react as front end and mongodb atlas ,node js as backend




my BASE url is https://kranthi-raj-portfolio.onrender.com
my git hub repo is :
frontend: GitHub - EndrapuKranthiRaj/Kranthi-Raj-Portfolio
backend: GitHub - EndrapuKranthiRaj/Portfolio-backend

Hi there,

I think your base URL should be the URL of your backend, not the URL of your frontend. With your current setup, you will be making calls to https://kranthi-raj-portfolio.onrender.com/all-projects which isn’t your backend so I would expect this to be giving 404’s.

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.