-
Notifications
You must be signed in to change notification settings - Fork 3k
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 UI stuck in Building without actually building the components #1968
Comments
Hello, @ArianeFire! I'm here to help you with any issues you encounter. If you have any questions or need assistance, feel free to ask. Yes, the issue where the Langflow UI gets stuck in the "Building" state without actually building the components is a known bug. The problem can occur due to errors in the For example, in the useFlowStore.getState().setIsBuilding(false); Similarly, in the useFlowStore.getState().setIsBuilding(false); Additionally, the To diagnose the issue further, you can check the browser console for specific errors or warnings. The relevant error handling code logs the following message to the console: console.error("EventSource failed:", error); If the error contains data, it parses the error data and sets it in the state: if (error.data) {
const parsedData = JSON.parse(error.data);
setErrorData({ title: parsedData.error });
setIsBuilding(false);
} Additionally, the const setErrorData = useAlertStore.getState().setErrorData;
try {
orderResponse = await getVerticesOrder(flowId, startNodeId, stopNodeId);
} catch (error: any) {
setErrorData({
title: "Oops! Looks like you missed something",
list: [error.response?.data?.detail ?? "Unknown Error"],
});
useFlowStore.getState().setIsBuilding(false);
throw new Error("Invalid nodes");
} This ensures that any issues with the EventSource connection or the vertices order update process will be logged to the console with detailed error messages, helping to diagnose why the UI is stuck in the "Building" state [2][3][1].
|
in the same situation, have you fixed it bro? |
No, it's a blocking issue for production, can't go to production with this. I am suspecting the cache management to be the cause, One of my flow blocked forever just after a cache expiration message popup when running it through json After adding the below code to extends the cache expiration time (Not proper way), the flow run properly (I will be testing it on langflow web to see) :
|
i fixed my problem, check in #2218 |
Describe the bug
Hello and thanks for the amazing work,
Langflow regularly stuck in building state until I restart it like shown in the attached image.
Can someone help or is it a bug ?
Browser and Version
To Reproduce
Steps to reproduce the behavior:
Work on langflow for sometime (Editing flow, Running some components, ...)
Leave the browser window open for sometime (Some minutes)
Refresh or switch to another flow
Try to run a flow it get stuck in building.... but the components never run
Screenshots
![FREEZE_BUILDING](https://private-user-images.githubusercontent.com/12550052/333649324-b0fbf6be-09ce-48bf-a7f6-ad1ac6b1b0a5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzExOTYsIm5iZiI6MTcyMDczMDg5NiwicGF0aCI6Ii8xMjU1MDA1Mi8zMzM2NDkzMjQtYjBmYmY2YmUtMDljZS00OGJmLWE3ZjYtYWQxYWM2YjFiMGE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDIwNDgxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhMGM5NmJmOTBmYWM5NjRhODczODNjMzA0MDY5N2Q2ZjAwZjc1NzE1OWNiNTU5Y2EwYTYzMjgyYjFjYWUzZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.V7y0Yi9zqxM76SDKm8IdhrjAfK5MM8KfxgvJYhIVw5w)
Additional context
When I restart, It work fine but there's nothing show on the logs and the the building Icon is not animated on the components
The text was updated successfully, but these errors were encountered: