Comments (15)
Hi @Konijntje-x,
Thanks for using Creative Tim products.
Do you use php artisan serve?
If yes, please use a proper multi-threaded web server such as Apache or Nginix to serve the backend application. Do not use php artisan serve as it will result in stalled requests due to the single-threaded nature of the built-in PHP web server.
We strongly recommend using Laradock or Laragon if possible.
Thank you.
from nuxt-argon-dashboard-laravel-bs4.
Hi @Konijntje-x,
We would like to check if this helped in solving the issue.
Should you need any further information feel free to contact us.
Best,
UPDIVISION Team
from nuxt-argon-dashboard-laravel-bs4.
Hi @Konijntje-x,
Hope this solved the problem. I will go ahead and close this ticket.
Best,
UPDIVISION Team
P.S. If you need help with any of your projects, we're happy to get in touch. We do custom development for start-ups and companies across the globe (you can check out our portfolio here https://updivision.com/portfolio and some happy clients over here https://updivision.com/testimonials). Don`t hesitate to drop us a line at [email protected] or by using our contact form (https://updivision.com/contact).
from nuxt-argon-dashboard-laravel-bs4.
Hello I am having the same issue, using a debian 9 apache virtual host, can you help please?
from nuxt-argon-dashboard-laravel-bs4.
Hi @appmeicher,
Can you please give us some more details regarding your issue?
Thank you,
UPDIVISION Team
from nuxt-argon-dashboard-laravel-bs4.
I installed both the api and the nuxt app on a debian 9 apache with virtual server, when I call the login POST api from postman it ruturns 200, when I try to login from the nuxt app ti gives the page: "Cannot read property 'data' of undefined
An error occurred while rendering the page. Check developer tools console for details."
This comes from the validateApi function present on the login page, so the error comes from the server
I guess I am missing some passport configuration but I have not been able to find the origin of the issue
from nuxt-argon-dashboard-laravel-bs4.
Hi @appmeicher,
Thank you for this extra info. Can you please also send us the .env files of the projects?
Best,
UPDIVISION Team
from nuxt-argon-dashboard-laravel-bs4.
of course, thanks!
API SERVER:
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:/=
APP_DEBUG=true
APP_URL=http://nuxt-server.test
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=nuxt-server
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
NUXT APP:
BASE_URL=http://nuxt-server.test
API_BASE_URL=http://nuxt-server.test
API_KEY=
IS_DEMO=
from nuxt-argon-dashboard-laravel-bs4.
Hello @appmeicher,
BASE_URL
should contain the URL of your Nuxt Argon Dashboard Project (eg. http://localhost:8080/). Right now it has the same value with your API_BASE_URL
.
Please let us know if you encounter any other issues.
Best,
UPDIVISION Team
from nuxt-argon-dashboard-laravel-bs4.
thanks for the tip, I changed the .env of the nuxt app and the related networka nd apache configuration
now when trying to login, on the route http://nuxt-server.test/api/v1/login it goes 200 and goes ahed on the http://nuxt-server.test/api/v1/me, returning 200 also, but not actually loggin in...
same behavour If login with wrong credentials....
from nuxt-argon-dashboard-laravel-bs4.
Hi @appmeicher,
Can you please let us know what response are you getting from the /me route?
Thank you,
UPDIVISION Team
from nuxt-argon-dashboard-laravel-bs4.
from the nuxt app is this, even if with wrong credentials, or if logging in with credentials of user nĀ°2:
{data: {type: "users", id: "1",ā¦}}
data: {type: "users", id: "1",ā¦}
attributes: {name: "Admin", email: "[email protected]", created_at: "2022-07-19 08:24:11",ā¦}
id: "1"
links: {self: "http://nuxt-server.test/api/v1/users/1"}
self: "http://nuxt-server.test/api/v1/users/1"
type: "users"
by the way, I was able to register a new user but I was locked put, cant access the dashboard... If loggin with postman, everything works fine (error if wrong credentials, get right user with the right credentials
from nuxt-argon-dashboard-laravel-bs4.
Hi @appmeicher,
Did you make any modifications to the code? Also, can you please send the response from the register too?
Thank you,
UPDIVISION Team
from nuxt-argon-dashboard-laravel-bs4.
Hi, thanks a lot for your support! I must have messed something with the nuxt app code, the main problem was surely in the .env API_BASE_URL, missing the /api/v1 part, sorry for my numbness!! I'll by the pro version right away!
from nuxt-argon-dashboard-laravel-bs4.
Hi @appmeicher,
We are glad we could help. Thank you for using our products!
If you encounter any other issues, don't hesitate to let us know.
Best,
UPDIVISION Team
from nuxt-argon-dashboard-laravel-bs4.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-argon-dashboard-laravel-bs4.