adrianhajdin / project_medical_pager_chat

Medical Pager Chat App powered by GetStream
1.49k stars 470 forks source link

local host url error #3

Open Essi5764 opened 2 years ago

Essi5764 commented 2 years ago

client/src/components/Auth.jsx

On line 31 const URL = 'https://localhost:5000/auth';

This generates a network error.

SHOULD BE : const URL = 'http://localhost:5000/auth';

Thanks for an awesome tutorial.

nicogulo commented 2 years ago

I got a problem before like that. thank you @Essi5764

mufticyberpro commented 2 years ago

I am still getting network error, please any help. This is the error below. Thanks Uncaught (in promise) Error: Network Error at createError (createError.js:16) at XMLHttpRequest.handleError (xhr.js:99)

nicogulo commented 2 years ago

can you drop the code?

Essi5764 commented 2 years ago

I am still getting network error, please any help. This is the error below. Thanks Uncaught (in promise) Error: Network Error at createError (createError.js:16) at XMLHttpRequest.handleError (xhr.js:99)

Hello Muftinet, I tried to find the project on your repo but I cannot get into the folder to see the code. This is how I fixed mine. Go to client folder>src>components>Auth.jsx. Make sure your url is like this: const URL = 'http://localhost:5000/auth';

I can attempt to help you further once I can see your code.

vuongthanhtuan commented 2 years ago

I also problem the same. I sure that I fixed URL. Please any help me. Uncaught (in promise) Error: Network Error at createError (createError.js:16) at handleError (xhr.js:117)

hainamzsd commented 2 years ago

Thank you.

Hariom-Singh786 commented 2 years ago

client/src/components/Auth.jsx

On line 31 const URL = 'https://localhost:5000/auth';

This generates a network error.

SHOULD BE : const URL = 'http://localhost:5000/auth';

Thanks for an awesome tutorial.

thank you brother

Hamdysaad20 commented 2 years ago

even when i edited the https to http .. i'm still getting this error

Hamdysaad20 commented 2 years ago

xhr.js:177 POST http://localhost:5000/auth/signup net::ERR_CONNECTION_REFUSED createError.js:16 Uncaught (in promise) Error: Network Error at createError (createError.js:16:1) at XMLHttpRequest.handleError (xhr.js:84:1)

denv3rr commented 2 years ago

xhr.js:177 POST http://localhost:5000/auth/signup net::ERR_CONNECTION_REFUSED createError.js:16 Uncaught (in promise) Error: Network Error at createError (createError.js:16:1) at XMLHttpRequest.handleError (xhr.js:84:1)

Hi bro, try replacing your Avatar URL by copying the address of the image to the right of your sign up form and pasting it in the Avatar URL input in the from and submit. See if that works. Looks like the error may be coming from trying to find the image for the avatar. Take care

Hamdysaad20 commented 2 years ago

Screenshot 2022-02-25 163353 Screenshot 2022-02-25 163422 Screenshot 2022-02-25 163438

i fetch the data but there is something block it to communicate with the network. so i think it's a back end part

riya1511 commented 2 years ago

Screenshot 2022-02-25 163353 Screenshot 2022-02-25 163422 Screenshot 2022-02-25 163438

i fetch the data but there is something block it to communicate with the network. so i think it's a back end part

Hey.. I was having the same issue, While filling the signup form just copy an image URL from free stock image or any reliable URL the app will work 😊

acoderpath commented 1 year ago

Hi, i'm new in react and has been following the same tutorial. I also ran in into the same issue with "POST http://localhost:5000/auth/true%20?%20%27signup%27%20:%20%27login%27} 404 (Not Found)" and Axios Error. I don't know if anyone has fixed the issue. Thank you

DeviousWings commented 1 year ago

Hi, I am new to reactjs. I am having the same problem and your links are broken. I can't get to them. Any help would be appreciated.

muskan-Bansal commented 1 year ago

use this in index.js

const authRoutes = require('./routes/auth.js');

app.use('/auth', authRoutes);

SomeCoder12 commented 1 year ago

I am still getting this issue even tho I did everything correct.

Here is the issue: Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Uncaught (in promise) Error: Request failed with status code 500 at createError (createError.js:16:1) at settle (settle.js:17:1) at XMLHttpRequest.onloadend (xhr.js:66:1)