Kenny
Explore posts from serversUnable to load env from service variables
I solved it. It was a mixture of both user error (my part) and railway I would say. On vercel when you paste a env variable. You get both the name and value pasted. I thought it was the same here (see screen recording). It did work at first I thought but as i started to look closer I realized, my env was being cut. My connection string left out
?retryWrites=true&w=majority
when I pasted in my env variable56 replies
Unable to load env from service variables
It did not work. I tried to log the values as you suggested to check if it was on railway's side. And it turns out the values are printed correctly. But somehow it's not being captured by the
MongooseModule
56 replies