enso icon indicating copy to clipboard operation
enso copied to clipboard

API Issue after install

Open OverboredThekid opened this issue 2 years ago • 4 comments

This is a bug.

Prerequisites

  • [x] Are you running the latest version? yes
  • [x] Are you reporting to the correct repository? yes (enso is made of many specialized packages: https://github.com/laravel-enso)
  • [x] Did you check the documentation? yes
  • [x] 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 avatar Dec 15 '21 03:12 OverboredThekid

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

OverboredThekid avatar Dec 18 '21 02:12 OverboredThekid

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!

OverboredThekid avatar Dec 18 '21 02:12 OverboredThekid

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

aocneanu avatar Dec 21 '21 23:12 aocneanu

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)

OverboredThekid avatar Dec 27 '21 19:12 OverboredThekid