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 9.1.0 broken: "target should exist before targetInfoChanged" #7204
Comments
I can confirm this issue. Maybe that's related to the fact that the page does (via JS) a reload? |
Same for me
Which version of Puppeteer works? |
I have the same issue. My program still works. It still successfully scrapes the urls that I inputted, however, my terminal gets spammed with the error: |
@jschfflr Does this sound related to the target filter work? |
Yes, this is related to my change and fixed in #7203. |
Can confirm that 9.1.1 fixes this from my point of view. |
@jribbens Thanks! |
Hello, sorry, I updated my puppeteer to the latest version, 9.1.1. And I still get the following error.
Followed by
I do have a try catch block though. Not sure why the error is happening. This is being run on a centOS system. |
@matter13311 Thanks for your feedback! Unfortunately, I can no longer reproduce the problem on my machine. Could you share a minimal reproduction maybe so that I can make sure that your use case also gets fixed? |
Hello @jschfflr ,
I have a array of product URLS, that I want to visit, and I'm running them through a for loop.
|
Could you verify that you have the latest version of puppeteer (>=9.1.1) installed? |
@jschfflr
|
@jschfflr and @matter13311 — Exact same issue here on MacOS… pops up randomly in the console / logs… in totally different contexts with different approaches to promises and try/catch (as separate blocks of awaits and as chained .then.catch ) on completely different pages… 😕 Puppeteer version 9.1.1.
|
Thanks for the reports! |
@jschfflr — That’s precisely the problem… I can’t see a repeatable pattern either, which makes it hard to report something helpful (and I really want to help!) 🤗 I have tried to:
No impact. I have since downgraded to 9.0.0 and the issue disappeared. Never seen errors like that with any previous version of Puppeteer. Is there anything I can do to backtrace this issue? Some extra params? Tests? If you have any ideas, I’d do my best. |
I can reproduce the problem with below code:
note that someurl.com does a JS redirect. |
me too |
Steps to reproduce
Unfortunately I can't provide a test case. However I can say that 9.0.0 works every time, and 9.1.0 fails every time.
Tell us about your environment:
What happens instead?
Puppeteer crashes with the following message:
The text was updated successfully, but these errors were encountered: