admin 管理员组文章数量: 1086019
i am using puppetter for web scrapping ; matchesLinks is an array that contains urls of some games. my code looks like :
for (let i = 0; i < matchesLinks.length; i++) {
await page.goto(matchesLinks[i]);
await page.goto(matchesLinks[i]);
await new Promise((r) => setTimeout(r, 6000));
}
after going to 1 or 2 URL i get error: originalMessage: 'No frame for given id found'
anyone can help my why i am getting this error
i am using puppetter for web scrapping ; matchesLinks is an array that contains urls of some games. my code looks like :
for (let i = 0; i < matchesLinks.length; i++) {
await page.goto(matchesLinks[i]);
await page.goto(matchesLinks[i]);
await new Promise((r) => setTimeout(r, 6000));
}
after going to 1 or 2 URL i get error: originalMessage: 'No frame for given id found'
anyone can help my why i am getting this error
- 1 Are there more details in the error? Like filename and line number? – Matt Ellen Commented Jan 14, 2022 at 9:02
- 1 Three lines of code with missing variables isn't enough to reproduce the problem. Which sites are you navigating to? Please share a minimal reproducible example. Thanks. – ggorlen Commented Jan 14, 2022 at 15:36
- no there is not any other information . but when i make headless as true it works fine – Sahil Soni Commented Jan 15, 2022 at 10:07
- Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Jan 23, 2022 at 6:02
2 Answers
Reset to default 6I have been trying to solve the issue since 3 days now.. no luck at all.. Though the issue disappears pletely if you set "headless: true" at browser's launch options.. So this issue is only associated with "headless: false" setting.
For those who try to help. The issue happens when using "page.goto" to access a website that have iframes, and redirect requests (Trying to abort those requests, or waituntil domcontentloaded won't solve the issue if you were wondering). E.g. it happens every time when trying to access "https://www.whatismyip./"
You might be facing the issue described here: https://github./puppeteer/puppeteer/pull/7848
You may try to downgrade puppeteer version to 11.0.0 as a workaround
EDIT: The fix has most likely been released. Consider upgrading the puppeteer.
本文标签: javascript39No frame for given id found39 in puppetterStack Overflow
版权声明:本文标题:javascript - 'No frame for given id found' in puppetter - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744039400a2522975.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论