-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Import feature broken? #4070
Comments
Hello @gitck-scch! I'm here to help you with any issues you're experiencing. I'm a bot that can assist you in solving bugs, answering questions, and becoming a contributor. Let me know how I can assist you with the import feature issue you've encountered. The issue you're experiencing with the import feature in Langflow might be related to a timing or focus problem during the file upload process. The error message you mentioned, Here are a few things you could try to troubleshoot or mitigate the issue:
If the issue persists, it might require a deeper dive into the codebase to identify and fix the underlying problem. |
hi @gitck-scch, hope you are doing well! I tested the upload functionality for Flows, Components, and Folders, both locally and in Docker Compose, and everything worked as expected. Are you downloading the Flow and Folder from Langflow? The JSON file needs to follow the required structure for it to work properly. Could you share the JSON file you're trying to upload? This will help me investigate further. Thanks! |
Hi @Cristhianzl, I think this problem won't be reproducable on your machine. Therefore I propose that someone with deep understanding of the code should take a look into this asynchronous calls, whether there might be the possibility of a race condition. At least in my point of view this might me a valid cause for the observed behaviour. Why it's just affecting my system, that is the interesting question. Thanks for your help! |
Hi @gitck-scch, I understand the issue you're facing, and it does sound tricky. Ideally, the error should be reproducible for anyone, but it might be specific to your environment. What are your thoughts on that? The error, "failed to execute 'RemoveChild' on 'Node': the node to be removed is not a child of this node," can occur when: The input element is either not properly appended to the DOM, or Alternatively, the cleanup() function could be called multiple times, causing the issue. To prevent this, we can add a check before attempting to remove the element to ensure it still exists in the DOM. This fix will be available on the next release or on the nightly builds. Thanks for your collaboration! |
I'm running into the same issue -- it's not unique to OP |
hey @Cristhianzl. Thanks, I saw this -- but doesn't really unblock me right now. I downloaded the nightly version but am still met with the same error! EDIT: It suddenly just managed to import correctly? Might be a similar reason to OPs original message. |
Bug Description
For me the import of json files (flows or components) does not work over the user interface of langflow. The system claims that upload was successful in the Notification dialog, but imported flows and components are not available/visible at the UI.
I tried to investigate the reasons for that and there seems to be some timing or focus issues when trying to import existing flows or components (I tried it with different browsers - same behavior, I tried direct installation of langflow and running as docker container - same behavior).
If I set the breakpoints as in the image below the probability that the import is available in the UI after selecting the file via the file explorer is much higher (it works at least sometimes).
Reproduction
I think it is not possible to reproduce this issue, if you do not have this behavior already.
I'm running langflow on:
Windows 10 Enterprise build 19045
Expected behavior
The import feature should work realiable, or at least do not claim that upload was successful as long as it is not saved with a project sucessfully.
Who can help?
No response
Operating System
Windows 10
Langflow Version
1.0.18
Python Version
3.12
Screenshot
No response
Flow File
any flow or component file (does not depend on a specific file)
The text was updated successfully, but these errors were encountered: