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

API Issue after install #406

Open
4 tasks done
OverboredThekid opened this issue Dec 15, 2021 · 4 comments
Open
4 tasks done

API Issue after install #406

OverboredThekid opened this issue Dec 15, 2021 · 4 comments

Comments

@OverboredThekid
Copy link

This is a bug.

Prerequisites

  • Are you running the latest version? yes
  • Are you reporting to the correct repository? yes
    (enso is made of many specialized packages: https://github.com/laravel-enso)
  • Did you check the documentation? yes
  • Did you perform a cursory search? yes

Description

I'm having a problem getting my API working after install.

I started the root using the PHP artisan serve command and getting an output of "Starting development server: HTTP:// 127.0.0.1:8000"

then opening a new terminal going to the client directory and running the command yarn serve getting "Done compiled successfully App running at: Local: http://localhost:8080"

The problem comes when I try visiting the page localhost:8080 (Which is the only URL that works) I see a green gradient screen but nothing else, on the terminal I get the error "Proxy error: could not proxy request /API/meta from localhost:8080 to localhost:8000"

My root .env file has the APP_URL set to "APP_URL=http://localhost:8080/" this is also added in my SANCTUM_STATEFUL_DOMAINS

My Client .env file has the APP_URL set to "APP_URL=http://localhost:8000" also added to DOMAINS list

I've tried switching the numbers around but am having no luck.

I am using a VM Ubuntu 20.4 | php8.0 | MySQL 8 | composer 2

@OverboredThekid
Copy link
Author

After looking at this and getting it to work I feel dumb :D

@OverboredThekid
Copy link
Author

I am still having a problem with this application tho,

I moved the root folder from my LAMP server to my Windows Wamp64 server and was able to get a login screen but now once I'm logged in I'm stuck on a loading screen, the console shoots out

Failed to load resource: the server responded with a status of 500 (Internal Server Error)
chunk-vendors.8623315e.js:21 Uncaught (in promise) Error: Request failed with status code 500
at e.exports (chunk-vendors.8623315e.js:21)
at e.exports (chunk-vendors.8623315e.js:70)
at XMLHttpRequest.p.onreadystatechange (chunk-vendors.8623315e.js:36)

I'm completely stuck on what I'm needing to do now. Any and all help is welcomed!

@aocneanu
Copy link
Member

If it's a 500 Error code it's a server issue. Check your laravel.log and see what is reported there.

@OverboredThekid
Copy link
Author

OverboredThekid commented Dec 27, 2021

Thank you for that! i fixed that issue but now all I'm getting in counsel is a 401 error after trying to login:

Failed to load resource: the server responded with a status of 401 (Unauthorized)
chunk-vendors.8623315e.js:21 Uncaught (in promise) Error: Request failed with status code 401
    at e.exports (chunk-vendors.8623315e.js:21)
    at e.exports (chunk-vendors.8623315e.js:70)
    at XMLHttpRequest.p.onreadystatechange (chunk-vendors.8623315e.js:36)

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