Skip to content

Commit

Permalink
Fix running puppeteer in the container
Browse files Browse the repository at this point in the history
Since we are running puppeteer in the container, we are running it
as root.
This is not allowed without the --no-sandbox argument, hence #1111
  • Loading branch information
kuzdogan committed Jul 14, 2023
1 parent 9b373d5 commit c6eb695
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/services/VerificationService-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ async function getCreatorTxByScraping(
fetchAddress: string,
txRegex: string[]
): Promise<string | null> {
const browser = await puppeteer.launch({ headless: "new" });
const browser = await puppeteer.launch({
headless: "new",
args: ["--no-sandbox"],
});
const page = await browser.newPage();
const response = await page.goto(fetchAddress);
await new Promise((r) => setTimeout(r, 3000)); // Wait for 3 seconds
Expand Down

0 comments on commit c6eb695

Please sign in to comment.