Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local host url error #3

Open
Essi5764 opened this issue Sep 3, 2021 · 16 comments
Open

local host url error #3

Essi5764 opened this issue Sep 3, 2021 · 16 comments

Comments

@Essi5764
Copy link

Essi5764 commented Sep 3, 2021

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
Copy link

nicogulo commented Sep 5, 2021

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

@mufticyberpro
Copy link

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
Copy link

can you drop the code?

@Essi5764
Copy link
Author

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
Copy link

vuongthanhtuan commented Nov 12, 2021

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
Copy link

Thank you.

@Hariom-Singh786
Copy link

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
Copy link

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

@Hamdysaad20
Copy link

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
Copy link

denv3rr commented Feb 25, 2022

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
Copy link

Hamdysaad20 commented Feb 25, 2022

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
Copy link

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
Copy link

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
Copy link

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
Copy link

use this in index.js

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

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

@SomeCoder12
Copy link

SomeCoder12 commented Jul 12, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests