You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have backend & front run in two hosts: localhost: 5678 vs localhost:3000
when i call api with this code
useEffect(() => {
if (fetcher.state === "idle" && !fetcher.data) {
fetcher.load(${import.meta.env.VITE_BACKEND_URL}/WI/GetModelList);
}
}, [fetcher]);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i have backend & front run in two hosts: localhost: 5678 vs localhost:3000
when i call api with this code
useEffect(() => {
if (fetcher.state === "idle" && !fetcher.data) {
fetcher.load(
${import.meta.env.VITE_BACKEND_URL}/WI/GetModelList
);}
}, [fetcher]);
display error 404, from dev tool i see url like this: "/WI/ModelList/http://localhost:3000/WI/GetModelList" it's wrong, correct as http://localhost:3000/WI/GetModelList
Beta Was this translation helpful? Give feedback.
All reactions