Open ImExiled opened 2 years ago
It is successfully connecting to the database once you run it ?, you should see something like this in console:
Success connection db
It is successfully connecting to the database once you run it ?, you should see something like this in console:
Success connection db
Yes, it connects to the Database successfully. I've now found that attempting to add a new account will always result in HTTP500 (Internal Server Error), and I cannot find any way to fix this issue. Attached is a screenshot of the only logging I could find which contains errors, that being of my browser Developer Console.
Update: Attaching screenshot of Node consoles for reference.
did you set the environment variables ?
did you set the environment variables ?
I did, yes. Would it help to see them?
yes
yes
Sure. Two screenshots attached, filenames at top.
192.168.209.129 is the internal IP of the machine, and is accessable on my network. Treated as the "publically" accessable domain.
ok, in development mode you need to set ORIGIN CLIENTS with the url where nextjs serves the app.
ORIGIN_CLIENTS=http://localhost:3000
I've set that, new error has arisen.
EDIT: I'm able to sign in now with accounts that didn't previously work!
send me a screenshot of the network tab
Screenshot attached. Error does still exist in console.
what is the response from the endpoint POST /auth/signup
404 if on browser, Internal Server Error via Curl POST request
Update: Confirmed that even though we receive Internal Server Error, accounts are created. Said accounts do not require email verification, for some reason.
Yes, this happens because the user is not required to check the mail.
It seems that the error could be the mail with which sendgrid sends mail.
Update this part and put your sengrid email
source file: /src/controllers/auth/signup.ts
You were correct, no more errors appear in the Developer Console. I appreciate your help.
The last request I have is to know how to add Genre, Series, and Episodes via API or otherwise. I have direct DB access via Mongo CLI if that works.
For that I had to make a frontend admin, you could do the same 👍
Hello,
I apologize if this is an improper question to ask, but I am unable to create a new user in the Database via the Register page or API locally, as it returns "Internal Server Error". This error is only visible when attempting to create a user via CURL.
If you need any information I am happy to provide.