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

error while trying to create an account #12

Open
marufmoinuddin opened this issue Feb 19, 2024 · 11 comments
Open

error while trying to create an account #12

marufmoinuddin opened this issue Feb 19, 2024 · 11 comments

Comments

@marufmoinuddin
Copy link

Error : Request failed with status code 404

@AboubakerIdHamide
Copy link
Owner

it's probably because of the .env files, because the client gets the API url from there !

@marufmoinuddin
Copy link
Author

after using updated env file i am still facing this problem. anyway to show logs?

@AboubakerIdHamide
Copy link
Owner

AboubakerIdHamide commented Feb 19, 2024 via email

@marufmoinuddin
Copy link
Author

maybe there is some package missing in my system. is there any other package need to be install other than laravel, mariadb, mysql, and npm?

@AboubakerIdHamide
Copy link
Owner

no ithink you're good to go, are you sure you added .env in both server and client

@marufmoinuddin
Copy link
Author

after reinstalling all the files and verifying env files now i am getting a new error: Error : Request failed with status code 503

@AboubakerIdHamide
Copy link
Owner

As i said before check the devtools (console | network) tab you will see what more info about the error. Or check the console where you're runing the server

@marufmoinuddin
Copy link
Author

marufmoinuddin commented Feb 19, 2024

i have found another lead in laravel logs. dont get why it cannot connect. db username is root and no password. database imports and i can view the table form phpmysql. yet this problem. seems like it cannot get the username.
my machine is ubuntu.

[2024-02-19 09:26:15] local.ERROR: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'infininty_script_cv' (Connection: mysql, SQL: select table>
[stacktrace]

also here is the error message:
POST

scheme
http
host
127.0.0.1:8000
filename
/api/en/auth/register
Address
127.0.0.1:8000
Status
503
Service Unavailable
VersionHTTP/1
Transferred3.50 kB (3.26 kB size)
Referrer Policystrict-origin-when-cross-origin
Request PriorityHighest
DNS ResolutionSystem

Access-Control-Allow-Origin
*
Cache-Control
no-cache, private
Connection
close
Content-Type
application/json
Date
Mon, 19 Feb 2024 11:58:28 GMT
Host
127.0.0.1:8000
X-Powered-By
PHP/8.2.12

Accept
application/json, text/plain, /
Accept-Encoding
gzip, deflate, br
Accept-Language
en-US,en;q=0.5
Connection
keep-alive
Content-Length
99
Content-Type
application/json
Host
127.0.0.1:8000
Origin
http://localhost:5173
Referer
http://localhost:5173/
Sec-Fetch-Dest
empty
Sec-Fetch-Mode
cors
Sec-Fetch-Site
cross-site
User-Agent
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0

@marufmoinuddin
Copy link
Author

marufmoinuddin commented Feb 19, 2024

also is the .env file in client correct?

~/git/InfinityScript.CV/client$ cat .env
VITE_SERVER_URL="http://127.0.0.1:8000"

@AboubakerIdHamide
Copy link
Owner

I dont know if you did the steps of installation correct or not but you mentioned alot of things,
Wich gets me confused, the first thing you mentioned was about the db and idont know if you have excuted the migration correct or no, the second thing was like cors-origin issue but i'm not sure because without settingup db ofcourse its not gonna work, the last thing .env is correct if your server is running on the url that you mentioned

@AboubakerIdHamide
Copy link
Owner

I sent you an email check it.

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