mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Merge pull request #504 from AidanTilgner/bugfix/puppeteer-chromium-not-found
fix: docker should install chromium and puppeteer should be no sandbox
This commit is contained in:
@@ -73,7 +73,12 @@ class Puppeteer_DocumentLoaders implements INode {
|
||||
|
||||
const puppeteerLoader = async (url: string): Promise<any> => {
|
||||
let docs = []
|
||||
const loader = new PuppeteerWebBaseLoader(url)
|
||||
const loader = new PuppeteerWebBaseLoader(url, {
|
||||
launchOptions: {
|
||||
args: ['--no-sandbox'],
|
||||
headless: 'new'
|
||||
}
|
||||
})
|
||||
if (textSplitter) {
|
||||
docs = await loader.loadAndSplit(textSplitter)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user