Пікірлер
@beatrizmonteirovieira
@beatrizmonteirovieira 15 күн бұрын
tks, it helped a lot
@ellakreiczer6526
@ellakreiczer6526 19 күн бұрын
Thanks!!!
@jackson-media123
@jackson-media123 Ай бұрын
yes bro iM WITh u
@khadija_raj
@khadija_raj Ай бұрын
Thankyou so much for your video, It helped me so much, Thanyou very much
@ledspbr
@ledspbr Ай бұрын
Good job. Thank you.
@kanagambigaidhinakarabalan5943
@kanagambigaidhinakarabalan5943 Ай бұрын
thanks much :)
@lisandroandradefranco5806
@lisandroandradefranco5806 Ай бұрын
really thanks
@Vthoen
@Vthoen Ай бұрын
1:28
@HiepNguyenVan-s9v
@HiepNguyenVan-s9v Ай бұрын
You saved me. Thank you very much
@soumikdas402
@soumikdas402 Ай бұрын
workd
@akhils4862
@akhils4862 Ай бұрын
Thank you so much
@kimashiidan
@kimashiidan Ай бұрын
Oh my god, thank you so much. I've been trying to fix this for an hour now.
@leodpj
@leodpj 2 ай бұрын
Thanks, brother, the server worked now I need to connect my APIs.
@mahalakshminadar2878
@mahalakshminadar2878 2 ай бұрын
Tqs bro
@PriyaXV
@PriyaXV 2 ай бұрын
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
@CopyPaste0123
@CopyPaste0123 2 ай бұрын
That's a good one Priya. Will look upon in future ones!
@Dottenpixel
@Dottenpixel 2 ай бұрын
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?
@CopyPaste0123
@CopyPaste0123 2 ай бұрын
Thanks for pointing out I will let you know once I get sonething more
@codeentries5257
@codeentries5257 2 ай бұрын
didn't solve?
@CopyPaste0123
@CopyPaste0123 2 ай бұрын
Solved, you just need to take care if you are sending reponse twice
@logupavithranlogupavithran2743
@logupavithranlogupavithran2743 3 ай бұрын
Brother the error is not went 😢
@CopyPaste0123
@CopyPaste0123 3 ай бұрын
Share your vode snippet
@mambacurry2448
@mambacurry2448 3 ай бұрын
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
@CopyPaste0123
@CopyPaste0123 3 ай бұрын
Share the api call you are making
@mambacurry2448
@mambacurry2448 3 ай бұрын
@@CopyPaste0123 useEffect(() => { axios.get('localhost:5001/api/products') .then(response => { setProducts(response.data); }) .catch(error => { console.error('Error fetching products:', error); }); }, []);
@CopyPaste0123
@CopyPaste0123 3 ай бұрын
Alright Use this instead axiois({ method:'get', baseUrl: 'localhost:5001/api/', url:'products' })
@Janjarlas.backup1
@Janjarlas.backup1 3 ай бұрын
voice is very lowww
@CopyPaste0123
@CopyPaste0123 3 ай бұрын
Yeah, will keep in mind next
@suyashjain3223
@suyashjain3223 3 ай бұрын
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
@sanjarkenjebekov6495
@sanjarkenjebekov6495 3 ай бұрын
perfect
@advaitnaik6824
@advaitnaik6824 3 ай бұрын
Can u make video on 304 not modified....i m getting response in v Console but not being rendered
@CopyPaste0123
@CopyPaste0123 3 ай бұрын
I will..soon
@chouthri1575
@chouthri1575 3 ай бұрын
React js to mongdb connection refused ..pls telll us
@CopyPaste0123
@CopyPaste0123 3 ай бұрын
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.
@conquerwithtitan
@conquerwithtitan 4 ай бұрын
i have used data.map how to use tableref
@CopyPaste0123
@CopyPaste0123 4 ай бұрын
declare the the in <table tag> and define the function as described in the video
@huylynhat7389
@huylynhat7389 4 ай бұрын
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
@CopyPaste0123
@CopyPaste0123 4 ай бұрын
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
@WebDevJapan
@WebDevJapan 4 ай бұрын
Expo Go is just for quickly testing your app. To do an actual development build is more complicated.
@CopyPaste0123
@CopyPaste0123 4 ай бұрын
Hey, yeah you may be right at some point. I will cover the CLI method too and create a full fledge project!
@thewaycoveredbylights
@thewaycoveredbylights 4 ай бұрын
I created an app but I didn't get a file named "app.js" what did I possibly do wrong ?
@CopyPaste0123
@CopyPaste0123 4 ай бұрын
Hey! Make sure you have set up react native environment correctly assuming this is your first react native app
@CopyPaste0123
@CopyPaste0123 4 ай бұрын
also, first try to create the app using npx create-expo-app MyNewApp --template blank this will create necessary files if you are missing
@thewaycoveredbylights
@thewaycoveredbylights 4 ай бұрын
@@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.
@CopyPaste0123
@CopyPaste0123 4 ай бұрын
I am glad it worked!
@thewaycoveredbylights
@thewaycoveredbylights 4 ай бұрын
@@CopyPaste0123 I also subscribed and liked the video.
@abbderahmen9981
@abbderahmen9981 5 ай бұрын
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.
@CopyPaste0123
@CopyPaste0123 5 ай бұрын
Did you deploy both frontend and backend?
@mbogitechconpts
@mbogitechconpts 5 ай бұрын
Very easy. Thanks. Do share code?
@CopyPaste0123
@CopyPaste0123 5 ай бұрын
Haven't pushed to gh yet if I do you will be the first to know.
@CopyPaste0123
@CopyPaste0123 5 ай бұрын
Meanwhile sample code: import React from 'react'; import ReactWordcloud from 'react-wordcloud'; const words = [ { text: 'told', value: 64, }, { text: 'mistake', value: 11, }, { text: 'thought', value: 16, }, { text: 'bad', value: 17, }, ] function SimpleWordcloud() { return <ReactWordcloud words={words} /> }
@miracerdin174
@miracerdin174 5 ай бұрын
thank u so much. It solve my all day problem
@bahataansumali209
@bahataansumali209 5 ай бұрын
Thanks a lot. It saved me a lot of time!
@CopyPaste0123
@CopyPaste0123 5 ай бұрын
Glad it helped!
@aruthshakariyawasam-op3vf
@aruthshakariyawasam-op3vf 6 ай бұрын
still did not worked. plz help
@CopyPaste0123
@CopyPaste0123 6 ай бұрын
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-op3vf
@aruthshakariyawasam-op3vf 6 ай бұрын
@@CopyPaste0123 thanx. 👍
@ChrisAmpeh
@ChrisAmpeh 6 ай бұрын
you deserve more views bro . thank you
@CopyPaste0123
@CopyPaste0123 6 ай бұрын
Thanks bro!
@pereiraarjun2880
@pereiraarjun2880 6 ай бұрын
thank u brother
@Er_imrankhan
@Er_imrankhan 6 ай бұрын
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
@phirotaorhip97
@phirotaorhip97 7 ай бұрын
Thank you Brother, it work like magic in my react app using pycharm.👍👍
@CopyPaste0123
@CopyPaste0123 6 ай бұрын
nothing makes me more happier than this!
@LearnWithoutSchool
@LearnWithoutSchool 7 ай бұрын
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
@CopyPaste0123 7 ай бұрын
Hey,can you test it first on postman ? Share what you got
@LearnWithoutSchool
@LearnWithoutSchool 7 ай бұрын
​@@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😊🇮🇳
@CopyPaste0123
@CopyPaste0123 7 ай бұрын
​@@LearnWithoutSchool glad you liked it.
@frs_23
@frs_23 5 ай бұрын
​@@LearnWithoutSchool I am encountering the same error. Can you please help me?
@CopyPaste0123
@CopyPaste0123 5 ай бұрын
@@frs_23 Hi, let me know what you are exactly facing
@chillax5041
@chillax5041 7 ай бұрын
hi, can I have your discord id by any chance to ask questions?
@CopyPaste0123
@CopyPaste0123 7 ай бұрын
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!
@CopyPaste0123
@CopyPaste0123 4 ай бұрын
Update : you can ask questions on [email protected]
@abidhossain2069
@abidhossain2069 9 ай бұрын
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 ?
@CopyPaste0123
@CopyPaste0123 8 ай бұрын
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!
@mambacurry2448
@mambacurry2448 3 ай бұрын
@@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?
@CopyPaste0123
@CopyPaste0123 3 ай бұрын
@@mambacurry2448 yup this method will work and no while using get you should use method:'get'
@layankhalil8674
@layankhalil8674 Ай бұрын
Hi,I'm facing same problem as yours , did you fix the error?thanks
@layankhalil8674
@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
@darcyiix9296
@darcyiix9296 9 ай бұрын
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!
@CopyPaste0123
@CopyPaste0123 9 ай бұрын
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!
@harishgiri3483
@harishgiri3483 4 ай бұрын
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?
@CopyPaste0123
@CopyPaste0123 4 ай бұрын
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?