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

New install: First login result in "Request failed with status code 404" #71

Closed
mfauvell opened this issue Aug 31, 2019 · 4 comments
Closed

Comments

@mfauvell
Copy link

Hi,

After of first installation, when I try to login with default credentials I receive an error message with this text:
"Request failed with status code 404"
and I can't login in app.

I have checked .env configuration and it seems correct. There isn't any error in log either.

image

@tuandm
Copy link
Owner

tuandm commented Sep 1, 2019

Hi @mfauvell,

Seems your routes are not ready. Can you please open browser console to see which URL is returning 404?

@mfauvell
Copy link
Author

mfauvell commented Sep 1, 2019

Hi @tuandm,

The URL retorning 404 is http://dev.mysite.org/api/auth/login.

Like issue #23 'process.env' is not defined. I have checked .env to make sure that the api settings are well configured and I have run 'npm run dev' again but it still fails.

@tuandm
Copy link
Owner

tuandm commented Sep 1, 2019

@mfauvell
That route is correct, it means your process.env has set. Can you please double check if your laravel's route table has that api:

php artisan route:list

@mfauvell
Copy link
Author

mfauvell commented Sep 2, 2019

@tuandm
I found the fail. It is not related with laravue. The mod-rewrite of my apache dev server was failing.
I had to remove it manually and reinstalled it and now it works.
Thank you for the help and sorry for the inconvenience.

@mfauvell mfauvell closed this as completed Sep 2, 2019
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

2 participants