uvicron app - doesn't read environment variables
koombal
HOBBYOP

a year 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

brody
EMPLOYEE

a year ago

Please attach a screenshot of your service variables.


koombal
HOBBYOP

a year ago

see attached

Attachments


brody
EMPLOYEE

a year ago

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


Status changed to Solved Railway over 1 year ago


koombal
HOBBYOP

a year ago

That worked, much appreciated


Loading...