Skip to content
uvicron app - doesn't read environment variables
koombal
OP

2 years ago

Hi,

I have a fastapi application over uvicorn who reads data from environment.

I defined the keys (i read them through env) the app requires under VARIABLES but the app keeps crashing in deployment as it cannot read the keys defined under VARIABLES.Any idea how to resolve?

Error from log:

Did not find together_api_key, please add an environment variable TOGETHER_API_KEY which contains it, or pass together_api_key as a named parameter. (type=value_error)

Solved

4 Replies

2 years ago

Please attach a screenshot of your service variables.


koombal
OP

2 years ago

see attached


2 years ago

You have not deployed the changes, Click the blue Deploy button.


Status changed to Solved Railway • over 2 years ago


koombal
OP

2 years ago

That worked, much appreciated


Welcome!

Sign in to your Railway account to join the conversation.

Loading...