Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Langflow global variables are "unset" on UI refresh #1886

Open
SonicDMG opened this issue May 13, 2024 · 1 comment
Open

Langflow global variables are "unset" on UI refresh #1886

SonicDMG opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SonicDMG
Copy link
Collaborator

Describe the bug
Langflow [Version v1.0.0a32]
All global variables are unset from components any time the Langflow UI is refreshed.

Global variables are set and saved with the flow. These work properly when exiting the flow and running the flow via the playground. However, if the browser is refreshed at any point all global variable references in components will be unset.

Browser and Version

To Reproduce
Steps to reproduce the behavior:

  1. Open any flow
  2. Set a global variable within a component
  3. Refresh the UI
  4. Any global variables set in components will then be unset

Screenshots
2024-05-13 15 13 49

Additional context
Even though the default setting for LANGFLOW_REMOVE_API_KEYS is no-remove-api-keys according to the README https://github.com/langflow-ai/langflow/blob/main/README.md I attempted to explicitly set this value to no effect.

Copy link

dosubot bot commented May 13, 2024

To address the issue of global variables being unset upon UI refresh in Langflow, consider the following specific steps tailored to Langflow's functionality and your development environment:

  1. Review Langflow's Global Variables Documentation: Ensure you're following the correct procedure for creating and using global variables in Langflow. This involves using the globe icon in text fields to add new variables and accessing them across different components. More details can be found in the Langflow documentation.

  2. Check store_environment_variables Setting: In Langflow, there's a setting that controls whether environment variables are stored as Global Variables in the database, ensuring their persistence across UI refreshes. Make sure this setting is enabled and correctly configured to include the variables you need to persist.

  3. Browser Compatibility: Although you're using Brave, which is Chromium-based and generally compatible with Langflow's requirements, ensure that there are no browser-specific settings or extensions that might interfere with the persistence of global variables.

These steps are directly related to Langflow's handling of global variables and should help in resolving the issue of variables being unset after a UI refresh. If the problem persists, it might be worth reaching out to the Langflow support or community forums for more targeted assistance.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant