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

Puppeteer failed: Waiting failed: 30000ms exceeded only on github action #25

Open
superTO opened this issue Dec 13, 2024 · 2 comments
Open

Comments

@superTO
Copy link

superTO commented Dec 13, 2024

[ptt-crawler] ERROR!---getResults
TimeoutError: Waiting for selector `#main-container > div.r-list-container.action-bar-margin.bbs-screen` failed: Waiting failed: [30](https://github.com/superTO/ptt-crawler-schedule/actions/runs/12315862735/job/34374924823#step:4:31)000ms exceeded
    at Timeout.<anonymous> (/home/runner/work/ptt-crawler-schedule/ptt-crawler-schedule/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.js:71:32)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)

只有在 github action 才會出現的錯誤, 在本地端執行都正常
推測是 puppeteer 的問題

puppeteer/puppeteer#8829
puppeteer/puppeteer#11247
puppeteer/puppeteer#10556

不知道有沒有辦法解決

@WayneChang65
Copy link
Owner

了解,我有空再來研究一下。甚至更新一下版本,看看是否可解決,感謝您的回報。

@superTO
Copy link
Author

superTO commented Dec 22, 2024

我更新至 puppeteer 23.11.1 一樣會有這個問題, 有翻了一下 puppeteer issue 看起來這個問題還沒解決

如果 ScrapingPages = 1 幾乎都會成功, 但如果 ScrapingPages > 1或是一次爬多個版, 就會出現錯誤了

另外我跑官方的測試檔案(https://github.com/puppeteer/puppeteer/blob/main/examples/search.js)是可以在 github action 正常執行的

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

No branches or pull requests

2 participants