Hi, actually you guys can see frontend on a same wifi but not backend Deploy the backend somewhere online (render, vercel,aws or ngrok) then try to access
hello im having this error when i hosted my website even tho i changed the localhost with the render url that they gave me but its not working its keeps telling me about localhost while im having another url could u tell me how i can fix this issue, thanks.
async function upload(ev) { ev.preventDefault(); const files = ev.target.files; const res = await axios ({ method:"postForm", baseURL:"localhost:3000/api", url:"/upload", data:files }) } can you help me in correcting it
I'm getting the problem of axiosError and Internal Server Error. "AxiosError {message: 'Request failed with status code 500', name: 'AxiosError', code: 'ERR_BAD_RESPONSE', config: {…}, request: XMLHttpRequest, …}" code: const newMessages = [...messages, userMessage]; const response = await axios.post("/api/conversation", { messages: newMessages }); I'm actuallty made a GPT Conversation Model. Yesterday it was working great but don't know what happened it is not giving answers to prompt and in console this error is showing!! Please HELP!!!
@@CopyPaste0123 Actually that error is now solved. It was OpenAI API Limit Problem. btw, It was great video learned about handling these kinda errors. It is helpful for future. Thankyou😊🇮🇳
Hey! You can ask anything here without hesitation. I will try to explain and if necessary ,create a video demonstration .If I plan to create a space like discord I will let you know, thanks!
Instead of just adding axios.post('/api/v1/user/register',values); try this: await axios({ method:"post", baseURL:"YOUR BASE URL like localhost:8000/api/v1", url:`/user/register`, data:values }) Replace the baseURL with your actual baseurl Let me know if you encounter further problems!
Hello, it worked when I ran the server via VS Code but now the issue is, I get the same error when I run my app on the phone. Any fix would be appreciated, regards!
It is not related to the error but the fact that you can only test your frontend on mobile devices when running on localhost. To test both server and client side on mobile you need to deploy (make it live). Just deploying the backend and using its link in frontend to access the server will also work. I hope you understand!
Hello, can you tell me that why the react app shows this error in every second continuously when the server is running but the when other connection works well passing data to server and getting response works fine but this error is continuously occurring every second. Can you provide me it's solution?
Can you explain more about the problem? What are you using in the backend? What port is your frontend running and what port is run by your backend? Are you sure about calling the correct port?