Skip to content

Commit

Permalink
fix: revert to default timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
sosweetham committed May 5, 2024
1 parent 12591c6 commit 206694e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/libs/guilded-scrape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const guildedUserProfileScrape: (id: string, getElement: 'avatar' | 'bann
browserInstances.push(browser)
const page = await browser.newPage()
try {
await page.goto(`https://www.guilded.gg/profile/${id}`, {waitUntil: 'networkidle0', timeout: 13000})
await page.goto(`https://www.guilded.gg/profile/${id}`, {waitUntil: 'networkidle0'})
} catch (e) {
throw new Error(`User not found,\nError:\n${e}`)
}
Expand Down Expand Up @@ -43,7 +43,7 @@ export const guildedServerProfileScrape: (id: string, getElement: 'icon' | 'bann
})
browserInstances.push(browser)
const page = await browser.newPage()
await page.goto(`https://www.guilded.gg/teams/${id}/overview`, {waitUntil: 'networkidle0', timeout: 13000})
await page.goto(`https://www.guilded.gg/teams/${id}/overview`, {waitUntil: 'networkidle0'})
const src = await page.$eval(getClass, (el: any) => el.src)
if (getElement === 'icon') {
await serverIconBucket.uploadImage(id, src)
Expand Down

0 comments on commit 206694e

Please sign in to comment.