Environment variable issue with secondary environment

Sshoomow10/13/2022
Hello. I'm trying to separate the environments on my project, and seems like I'm having an issue with variables. I'm using Doppler for secret injection, and this requires presence of the DOPPLER_TOKEN variable in Railway. Before I branched off the new environment (development), I had this variable set for production and all was working just fine. Then I created the development, and added the variable from prod copying the value, which was pointing to Doppler's prod environment. After this the production service launched fine same as before, but the development (with the same token) crashed with Doppler Error: you must provide a token
I created 2 new tokens - one for prod and one for dev, and put them in corresponding places in Railway. Sadly, no change - still crashing with the same error. Given that the token is actually there, it doesn't seem like a Doppler issue to me. Could be wrong, though.
Please, help.
Eeirk10/13/2022
so u have an environment production, and it has an env var DOPPLER_TOKEN with value whatever token it is,
and another environment development, and it has an env var DOPPLER_TOKEN with value whatever token it is?
Eeirk10/13/2022
if ur doing smth like ${DOPPLER_TOKEN}, that wont work
Eeirk10/13/2022
also check if u have any typos
Sshoomow10/13/2022
just to clarify:
- production -> DOPPLER_TOKEN = value1 (works)
- development -> DOPPLER_TOKEN = value2 (doesn't work)
Sshoomow10/13/2022
I'm talking about system interface.
Sshoomow10/13/2022
TLDR;: 2 environments with (presumably) identical set-up and the same set of variables, one works, the other doesn't
Sshoomow10/14/2022
@eirk do you need more info from me to fix this?
Eeirk10/14/2022
idk
Eeirk10/14/2022
i cant help any further
Eeirk10/14/2022
im not staff
Sshoomow10/15/2022
thanks for trying, @eirk