Subject: Environment Variables Not Injecting into Container
prkcder
FREEOP

4 months ago

Hello Railway team,

My environment variables are not being injected into my container, even though they're set in the Service Variables. 

Project Details:
- Project ID: f07e71b9-8f1c-4a97-959e-daca78799e90
- Service ID: 7573ac81-5e44-432b-aec8-0d32b2c4258a

Issue:
- Custom environment variables (DISCORD_WEBHOOK_URL, etc.) show as None/not set
- Railway's internal variables (RAILWAY_*) ARE being injected correctly
- Same code works locally and in other Railway projects
- I've tried: deleting/recreating service, railway.toml, different variable names

Debug output shows:
- DISCORD_WEBHOOK_URL: None
- Only RAILWAY_* variables are present

This appears to be a platform bug affecting my specific project. Can you please investigate? Also it is not just the discord webhook but with the other variables as well.

Thank you!
Solved$10 Bounty

4 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


4 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 4 months ago


4 months ago

Where are you accessing the variables?


prkcder
FREEOP

4 months ago

I was able to get it to work, the answer is to always deploy, If the service variables are purple that means its not injecting.

But one question I have is that when trying to see the variables or edit in the service variables, the variables only display ****


4 months ago

If the service variables are purple that means its not injecting

Oh, you just need to remember to deploy changes after making them, if they're purple then it means the changes are pending

when trying to see the variables or edit in the service variables, the variables only display ****

Did you click on the eye icon next to the variable? Also make sure you're not sealing the variables, sealing variables makes it so you cant ever see them again


Status changed to Solved brody 4 months ago


Loading...