4 Replies
Did you get a stack trace too? This is an error that can be thrown by the Convex HTTP client when it is constructed with no argument (e.g. when it's constructed with an argument that is an environment variable that isn't defined)
no
ooh
I am instantiating convexhttp clients in my server code
and perhaps if I get the environment variable too soon, it's not set?
that was the issue
const address = process.env.CONVEX_URL as string;
isn't getting the right thing
did behavior change between .16 and .17 there?
if I move that to inside of my action it is fine
Env variables are not and were never defined during deploy time
I guess I just assumed that it worked like normal environment variables