You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it does happen kind of randomly, when loading files using the File component.
I am loading txt files.
It happened to me quite a few times repeatedly.
Langflow on Astra (I thinit's version1.1)
Reproduction
steps to reproduce:
load one file, build the component, all is good,
then load another one, build, all is good
then load another one, build and it fails with that error, preventing the build
then change the file, build and it loads correctly...
Expected behavior
The File component should not show any error when loading a file, or show a meaningful error if needed.
This error seems to resolve on its own, but then it comes back.
It's not blocking though.
Who can help?
No response
Operating System
Astra
Langflow Version
1.1
Python Version
None
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered:
The "bad offset for central directory" error you're encountering with the File component in Langflow version 1.1 seems to be an intermittent issue that occurs when loading text files. Unfortunately, there isn't specific documentation or known issues related to this error in the available information. However, you can try the following steps to troubleshoot and potentially resolve the issue:
Check File Integrity: Ensure that the text files you are loading are not corrupted. You can try opening them in a text editor to verify their content.
Logging: Enable detailed logging in Langflow to capture more information about the error when it occurs. This can help identify any patterns or specific conditions that trigger the error. Langflow uses the loguru library for logging, and you can adjust the log level to "DEBUG" for more detailed logs [1].
File Component Implementation: The File component checks file extensions and raises errors for unsupported types. Ensure that the files you are loading are supported text file types like .txt, .md, .csv, etc. [2].
Error Handling: Langflow provides meaningful error messages for unsupported file types. If the error message is not clear, consider checking the logs for additional context [2].
If the issue persists, reviewing the logs might provide more insight into the root cause of the error.
@fanimali Just to confirm, this was happening when uploading regular files (.txt, etc) not zip files, right?
Zip file support is new, and the references im seeing show that this error occurs when involving zip files... but that doesn't seem to be what you experienced. I'm going to see if i can reproduce it. Possibly it could be related to DS LF specifically, as the testing of the file component has primarily been done on the OSS version. But any more details you could provide would be much appreciated!
Bug Description
it does happen kind of randomly, when loading files using the File component.
I am loading txt files.
It happened to me quite a few times repeatedly.
Langflow on Astra (I thinit's version1.1)
Reproduction
steps to reproduce:
load one file, build the component, all is good,
then load another one, build, all is good
then load another one, build and it fails with that error, preventing the build
then change the file, build and it loads correctly...
Expected behavior
The File component should not show any error when loading a file, or show a meaningful error if needed.
This error seems to resolve on its own, but then it comes back.
It's not blocking though.
Who can help?
No response
Operating System
Astra
Langflow Version
1.1
Python Version
None
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered: