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

404 error API #35

Closed
b0nb0n opened this issue Jul 2, 2019 · 6 comments
Closed

404 error API #35

b0nb0n opened this issue Jul 2, 2019 · 6 comments

Comments

@b0nb0n
Copy link

b0nb0n commented Jul 2, 2019

Hi,

I try to test the project. I've updated the .env with my values but when I want to register, I've a 404 error on API (log)

POST http://xxxxxx/api/v1/auth/login 404 (Not Found)

This is my .env:

`APP_ENV=production
APP_KEY=base64:xxxxx=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://xxxx.io

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=xx
DB_USERNAME=xx
DB_PASSWORD=xxxx

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

PERSONAL_CLIENT_ID=1
PERSONAL_CLIENT_SECRET=xxxxxxxxx
PASSWORD_CLIENT_ID=2
PASSWORD_CLIENT_SECRET=xxxxxxxx
`

@b0nb0n
Copy link
Author

b0nb0n commented Jul 2, 2019

Do you have an idea ?

@moeen-basra
Copy link
Owner

your APP_URL and api url for the frontend should be the same

@b0nb0n
Copy link
Author

b0nb0n commented Jul 2, 2019

Sorry, I'm not sure to understand. Where can I set the API URL ?

@b0nb0n
Copy link
Author

b0nb0n commented Jul 2, 2019

I've any route who works, for examples theses 2 routes send 404:

http://xxxxx.io/img/moeen.jpg
http://xxxxx.io/api/v1/auth/login

@b0nb0n
Copy link
Author

b0nb0n commented Jul 2, 2019

The img is not a good example because this doesn't exist ...lol

But the problem persists for all api calls

@moeen-basra
Copy link
Owner

moeen-basra commented Jul 3, 2019

.env
APP_URL=http://xxxx.io

make sure you app sending API request to above mentioned APP_URL

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