langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Langflow Log-in as a user (on fresh Browser Instance) UI will not load a flow at all

Open poonacha-2 opened this issue 11 months ago • 5 comments

Bug Description

When logging into the Langflow environment for the first time for a given browser instance, the UI will not load a flow all the way to complete view of flow (see screenshot).

You have to manually refresh the browser window on the flow screen, at which point it will load.

At that point, if you log out and log in (in the same browser window instance), it will continue to work as expected.

If you close that browser window and open a new one and log in, the bug will occur again and remain until you refresh the the flow environment manual (browser refresh button).

Again, the only way we have managed to resolve this issue is by refreshing the browser window.

Reproduction

This is a very reproducible bug across multiple environments

Steps to Reproduce Bug:

  1. Log into Langflow via a FRESH browser instance
  2. Load up any existing or new flow, and you should see a"loading" spinner that spins indefinitely.

Expected behavior

Upon logging into Langflow via a fresh browser instance, a user should be able to click into a flow and see the full UI for that flow load instantly.

Who can help?

@anovazzi1 @Cristhianzl

Operating System

Debian GNU/Linux 12 (bookworm)

Langflow Version

1.1.1

Python Version

3.11

Screenshot

Image

Flow File

No response

poonacha-2 avatar Jan 18 '25 20:01 poonacha-2

Hey @poonacha-2! I'm here to help you with any issues you're experiencing in Langflow. If you need assistance with bugs, questions, or want to become a contributor, feel free to ask.

I found a similar closed issue where a user was able to load the page but encountered an error. However, no solution was found in the comments of that issue [1].

Regarding your specific issue, it seems like a workaround is to manually refresh the browser window after logging in for the first time in a new browser instance. This refresh seems to resolve the loading problem temporarily. Unfortunately, there isn't a permanent fix mentioned in the available information. You might want to check if there are any updates or patches available for Langflow that address this issue.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

dosubot[bot] avatar Jan 18 '25 20:01 dosubot[bot]

I've also encountered this bug - I could only reproduce it when auto login is turned off. With auto login turned on it works as expected.

When autologin is turned off call to api/v1/all?force_refresh=true fails because there is no a valid token before we actually logged in, after successful login this data is not rerequested. Page refresh executes this request again and since we have a token now it fixes the issue

rors41 avatar Jan 20 '25 14:01 rors41

Has a fix been implemented on this one? It seems like easy low hanging fruit and I was told 1.1.2 is out. I'm curious if a stealth fix for this was included.

ebachUTSA avatar Jan 24 '25 13:01 ebachUTSA

Still having this issue on 1.1.2, so I don't think it has been addressed yet.

greenmotion avatar Jan 24 '25 21:01 greenmotion

Hi, @poonacha-2. I'm Dosu, and I'm helping the langflow team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • The UI fails to load a flow completely upon first login in a fresh browser instance.
  • A manual refresh is required to temporarily resolve the issue.
  • The bug occurs when auto login is turned off, as noted by @rors41.
  • The issue persists in version 1.1.2, as confirmed by @greenmotion.

Next Steps:

  • Please let us know if this issue is still relevant to the latest version of the langflow repository by commenting on this issue.
  • If there is no further activity, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Apr 25 '25 16:04 dosubot[bot]