Thankyou so much for your video, It helped me so much, Thanyou very much
@ledspbrАй бұрын
Good job. Thank you.
@kanagambigaidhinakarabalan5943Ай бұрын
thanks much :)
@lisandroandradefranco5806Ай бұрын
really thanks
@VthoenАй бұрын
1:28
@HiepNguyenVan-s9vАй бұрын
You saved me. Thank you very much
@soumikdas402Ай бұрын
workd
@akhils4862Ай бұрын
Thank you so much
@kimashiidanАй бұрын
Oh my god, thank you so much. I've been trying to fix this for an hour now.
@leodpj2 ай бұрын
Thanks, brother, the server worked now I need to connect my APIs.
@mahalakshminadar28782 ай бұрын
Tqs bro
@PriyaXV2 ай бұрын
great video! u could also give tips on what ur doing they dont have to be long just a brief idea about the things u r doing
@CopyPaste01232 ай бұрын
That's a good one Priya. Will look upon in future ones!
@Dottenpixel2 ай бұрын
Thank you! I appreciate the quick solution, but unfortunately, this is not sustainable. Have you found a permanent solution that doesn't involve adding the env var?
@CopyPaste01232 ай бұрын
Thanks for pointing out I will let you know once I get sonething more
@codeentries52572 ай бұрын
didn't solve?
@CopyPaste01232 ай бұрын
Solved, you just need to take care if you are sending reponse twice
@logupavithranlogupavithran27433 ай бұрын
Brother the error is not went 😢
@CopyPaste01233 ай бұрын
Share your vode snippet
@mambacurry24483 ай бұрын
Hello, I’ve been dealing with a similar error, I’m getting errror 404 not found. I didn’t create a proxy, I used a regular localhost. I’m unsure how to fix this
Alright Use this instead axiois({ method:'get', baseUrl: 'localhost:5001/api/', url:'products' })
@Janjarlas.backup13 ай бұрын
voice is very lowww
@CopyPaste01233 ай бұрын
Yeah, will keep in mind next
@suyashjain32233 ай бұрын
const handleSubmit= async (e) => { e.preventDefault(); try { const {data}= await axios({ method:"put", baseURL:"localhost:5000/api/v1", url:"/profile", data:{name,email,password,phone,address}, headers: { Authorization: `Bearer ${auth.token}` } }) if(data?.error){ toast.error(data?.error); } else{ setAuth({...auth, user: data?.updatedUser }); let ls=localStorage.getItem("auth"); ls=JSON.parse(ls); ls.user=data.updatedUser; localStorage.setItem("auth",JSON.stringify(ls)); toast.success("Profile Updated Successfully") } } catch (error) { console.log(error); toast.error("Something went wrong"); } } Even After changes made it is giving the same error.Could you help please AxiosError code : "ERR_BAD_REQUEST" config : {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …} message : "Request failed with status code 400" name : "AxiosError" request : XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …} response : {data: {…}, status: 400, statusText: 'Bad Request', headers: AxiosHeaders, config: {…}, …} stack : "AxiosError: Request failed with status code 400 at settle (localhost:3000/static/js/bundle.js:241798:12) at XMLHttpRequest.onloadend (localhost:3000/static/js/bundle.js:240464:66) at Axios.request (localhost:3000/static/js/bundle.js:240951:41) at async handleSubmit (localhost:3000/static/js/bundle.js:3447:11)" [[Prototype]] : Error
@sanjarkenjebekov64953 ай бұрын
perfect
@advaitnaik68243 ай бұрын
Can u make video on 304 not modified....i m getting response in v Console but not being rendered
@CopyPaste01233 ай бұрын
I will..soon
@chouthri15753 ай бұрын
React js to mongdb connection refused ..pls telll us
@CopyPaste01233 ай бұрын
How come you use reactjs directly with mongodb Using nodejs as a backend and accesing mongodb via apis designed in nodejs is advised. However, the err conn refused suggests that MongoDB is not set up to accept connections from outside its host machine. MongoDB by default binds to localhost (127.0.0.1), which means it doesn't accept remote connections.
@conquerwithtitan4 ай бұрын
i have used data.map how to use tableref
@CopyPaste01234 ай бұрын
declare the the in <table tag> and define the function as described in the video
@huylynhat73894 ай бұрын
i'm having this error when i hosting a LLM AI, my computer can use it, but my friend with the same wifi cannot :((, can you tell me how to fix this
@CopyPaste01234 ай бұрын
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
@WebDevJapan4 ай бұрын
Expo Go is just for quickly testing your app. To do an actual development build is more complicated.
@CopyPaste01234 ай бұрын
Hey, yeah you may be right at some point. I will cover the CLI method too and create a full fledge project!
@thewaycoveredbylights4 ай бұрын
I created an app but I didn't get a file named "app.js" what did I possibly do wrong ?
@CopyPaste01234 ай бұрын
Hey! Make sure you have set up react native environment correctly assuming this is your first react native app
@CopyPaste01234 ай бұрын
also, first try to create the app using npx create-expo-app MyNewApp --template blank this will create necessary files if you are missing
@thewaycoveredbylights4 ай бұрын
@@CopyPaste0123 I tried it, and it worked. Thank you so much. I was reading the documentations but now I don't have to do that. Thanks again.
@CopyPaste01234 ай бұрын
I am glad it worked!
@thewaycoveredbylights4 ай бұрын
@@CopyPaste0123 I also subscribed and liked the video.
@abbderahmen99815 ай бұрын
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.
@CopyPaste01235 ай бұрын
Did you deploy both frontend and backend?
@mbogitechconpts5 ай бұрын
Very easy. Thanks. Do share code?
@CopyPaste01235 ай бұрын
Haven't pushed to gh yet if I do you will be the first to know.
There are two key solutions to this The first one is described in the video The second one is to downgrade your node version to 16
@aruthshakariyawasam-op3vf6 ай бұрын
@@CopyPaste0123 thanx. 👍
@ChrisAmpeh6 ай бұрын
you deserve more views bro . thank you
@CopyPaste01236 ай бұрын
Thanks bro!
@pereiraarjun28806 ай бұрын
thank u brother
@Er_imrankhan6 ай бұрын
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
@phirotaorhip977 ай бұрын
Thank you Brother, it work like magic in my react app using pycharm.👍👍
@CopyPaste01236 ай бұрын
nothing makes me more happier than this!
@LearnWithoutSchool7 ай бұрын
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!!!
@CopyPaste01237 ай бұрын
Hey,can you test it first on postman ? Share what you got
@LearnWithoutSchool7 ай бұрын
@@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😊🇮🇳
@CopyPaste01237 ай бұрын
@@LearnWithoutSchool glad you liked it.
@frs_235 ай бұрын
@@LearnWithoutSchool I am encountering the same error. Can you please help me?
@CopyPaste01235 ай бұрын
@@frs_23 Hi, let me know what you are exactly facing
@chillax50417 ай бұрын
hi, can I have your discord id by any chance to ask questions?
@CopyPaste01237 ай бұрын
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!
const onFinishHandler = async (values) => { try { const res = await axios.post('/api/v1/user/register',values); if (res.data.success) { message.success('Register success!') navigate('/login'); } else { message.error(res.data.message); } } catch (error) { console.log(error); message.error('Something went wrong') } }; still getting this error any solution ?
@CopyPaste01238 ай бұрын
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!
@mambacurry24483 ай бұрын
@@CopyPaste0123 I would still make the method post if I’m using get? Also this will still work if I’m not creating my own proxy?
@CopyPaste01233 ай бұрын
@@mambacurry2448 yup this method will work and no while using get you should use method:'get'
@layankhalil8674Ай бұрын
Hi,I'm facing same problem as yours , did you fix the error?thanks
@layankhalil8674Ай бұрын
@@CopyPaste0123 Hi, I have same error Node cannot be found in the current page. Register.js:41 TypeError: Cannot read properties of undefined (reading 'protocol') at isURLSameOrigin (isURLSameOrigin.js:57:1) at __WEBPACK_DEFAULT_EXPORT__ (resolveConfig.js:45:1) at dispatchXhrRequest (xhr.js:16:1) at new Promise (<anonymous>) at xhr (xhr.js:15:1) at Axios.dispatchRequest (dispatchRequest.js:51:1) at Axios._request (Axios.js:173:1) at Axios.request (Axios.js:40:1) at wrap (bind.js:5:1) at handleSubmit (Register.js:27:1) at Axios.request (Axios.js:45:1) at async handleSubmit (Register.js:27:1) this is the error and this is my code const res=await axios({ method:"post", baseUrl:"localhost:8080", Url:"api/v1/auth/register", data:{name,email,password,phone,address} }) if (res && res.data.success) { toast.success(res.data && res.data.message); navigate("/login"); } else { toast.error(res.data.message); } } catch (error) { console.log(error); toast.error("Something went wrong"); } }; please I'll be grateful if you can help me
@darcyiix92969 ай бұрын
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!
@CopyPaste01239 ай бұрын
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!
@harishgiri34834 ай бұрын
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?
@CopyPaste01234 ай бұрын
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?