Skip to content

langflow runtime use “ LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT” Add custom global variables from the environment #7524

Open
@lianlian1212

Description

@lianlian1212

I configured the environment variables when the langflow runtime started: LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT

Image

redis_password=xxxxxxxxxxxxxxxxxx
LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT=langflow_apikey,redis_password,redis_endpoint,azure_openai_endpoint,azure_openai_apikey
redis_endpoint=xxxxxxxxxxxxxxxx
LANGFLOW_STORE_ENVIRONMENT_VARIABLES=true

And success in the langflow ui interface can see the success of joining

Image

However, use this variable within the component to report an exception
Error:“Decryption using UTF-8 encoded API key failed. Error: %s. Retrying decryption using the raw string input.”

Image

Image

langflow version:langflow:1.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions