Josh
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Neither
45 replies
BABetter Auth
•Created by Josh on 5/11/2025 in #help
requests to /api/auth/* hanging for 500s before cancelling when calling to prod URL
6 replies
BABetter Auth
•Created by Josh on 5/11/2025 in #help
requests to /api/auth/* hanging for 500s before cancelling when calling to prod URL
the main thing i notice here is
"credentials": "omit"
which is weird because in my authClient, i have credentials as include6 replies
BABetter Auth
•Created by Josh on 5/11/2025 in #help
requests to /api/auth/* hanging for 500s before cancelling when calling to prod URL
Here's the request from my network tab copied as fetch
fetch("https://thewebapi-production.up.railway.app/api/auth/sign-up/email", {
"headers": {
"accept": "/",
"accept-language": "en-GB,en;q=0.9,en-US;q=0.8",
"content-type": "application/json",
"priority": "u=1, i",
"sec-ch-ua": ""Microsoft Edge";v="136", "Microsoft Edge WebView2";v="136", "Not.A/Brand";v="99", "Chromium";v="136"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": ""Windows"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "cross-site",
"sec-fetch-storage-access": "active"
},
"referrer": "http://localhost:1420/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "{"email":"[email protected]","password":"fewfewfewfewfewfew","name":"johndoe","callbackURL":"/"}",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
6 replies
BABetter Auth
•Created by Josh on 5/11/2025 in #help
requests to /api/auth/* hanging for 500s before cancelling when calling to prod URL

6 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Your requests look like they come in whereas mine stay stuck on pending for 5min and then they’re cancelled
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
I have something similar but I think that might just be a CORS issue
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Odd
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Do your server logs say anything?
45 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
I had a password row in my table and didnt realize I shouldnt. wasted 10h figuriing that out
37 replies
BABetter Auth
•Created by momoneko on 5/5/2025 in #help
What's the difference between the session and the token?
and the whole as Response thing confuses me too
3 replies
BABetter Auth
•Created by momoneko on 5/5/2025 in #help
What's the difference between the session and the token?
I'm trying to figure out the same thing myself.
I'm just now adopting better auth into my stack and im wondering how i should use it with my already existing nestjs setup. Do I just use the useSession hook and get the id, then call my backend anyway? not really sure to be honest
3 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
i hate my life
37 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
god
37 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
oh my
37 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
oh my god i figured it out
37 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
my nestjs setup is the exact same as the github repo i linked above
37 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
37 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
so my users table matches the schema from https://www.better-auth.com/docs/concepts/database#user
37 replies
BABetter Auth
•Created by Josh on 5/3/2025 in #help
Error FAILED_TO_CREATE_USER with code 42703 when trying to create a new user
bump
37 replies