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

handles scenario where NodesPool require call fails #1786

Merged

Conversation

Jaredude
Copy link
Contributor

@Jaredude Jaredude commented Feb 22, 2024

Currently, the following file results in an error: Flowise/packages/components/dist/nodes/documentloaders/Subtitles/Subtitles.js:3:15 The result is that initializeNodes fails completely, and all other code in initDatabase fails to load

Currently, the following file results in an error: Flowise/packages/components/dist/nodes/documentloaders/Subtitles/Subtitles.js:3:15
The result is that initializeNodes fails on all nodes, and all other code in initDatabase fails to load
@Jaredude
Copy link
Contributor Author

Jaredude commented Feb 22, 2024

@HenryHengZJ This bug fix does not address the issue with Subtitles that is causing initializeNodes to fail. Instead, this solution prevents a single node failing to load in initializeNodes from preventing the entire server to initialize properly. This way, if another node has an issue in the future, the server initialization will still function properly. I'll take a separate look at Subtitles and make a different PR as needed.

This is the error I was seeing in my server log
Screenshot 2024-02-21 at 9 28 15 PM

@HenryHengZJ
Copy link
Contributor

thanks @Jaredude! yeah wrapping in try catch can at least let the data source initialiation finish

@HenryHengZJ HenryHengZJ merged commit 2290ba9 into FlowiseAI:main Feb 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants