500 Internal Server Error

I've set up Better Auth on a new project and I'm getting a "500 Internal Server Error" while I try to sign in. This is my auth.ts file:
5 Replies
Leonardo Maldonado
Leonardo MaldonadoOP3mo ago
This is what I get when I try to sign in:
{
"response": {},
"request": {
"baseURL": "http://localhost:3000/api/auth",
"credentials": "include",
"method": "POST",
"plugins": [
{
"id": "redirect",
"name": "Redirect",
"hooks": {}
},
{
"id": "add-current-url",
"name": "Add current URL",
"hooks": {}
},
{
"id": "apply-schema",
"name": "Apply Schema",
"version": "1.0.0"
}
],
"body": "{\"email\":\"[email protected]\",\"password\":\"mypasswordhere\",\"callbackURL\":\"http://localhost:3000/app\"}",
"url": "http://localhost:3000/api/auth/sign-in/email?currentURL=http%3A%2F%2Flocalhost%3A3000%2Fentrar",
"headers": {},
"signal": {}
},
"error": {
"status": 500,
"statusText": "Internal Server Error"
}
}
{
"response": {},
"request": {
"baseURL": "http://localhost:3000/api/auth",
"credentials": "include",
"method": "POST",
"plugins": [
{
"id": "redirect",
"name": "Redirect",
"hooks": {}
},
{
"id": "add-current-url",
"name": "Add current URL",
"hooks": {}
},
{
"id": "apply-schema",
"name": "Apply Schema",
"version": "1.0.0"
}
],
"body": "{\"email\":\"[email protected]\",\"password\":\"mypasswordhere\",\"callbackURL\":\"http://localhost:3000/app\"}",
"url": "http://localhost:3000/api/auth/sign-in/email?currentURL=http%3A%2F%2Flocalhost%3A3000%2Fentrar",
"headers": {},
"signal": {}
},
"error": {
"status": 500,
"statusText": "Internal Server Error"
}
}
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Leonardo Maldonado
Leonardo MaldonadoOP3mo ago
I'm getting UNDEFINED_VALUE on the terminal now. @bekacru any help here, please?
Leonardo Maldonado
Leonardo MaldonadoOP3mo ago
No description
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?