puppeteer: puppeteer 9.1.0 broken: "target should exist before targetInfoChanged"

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:

  • Puppeteer version: 9.1.0
  • Platform / OS version: Windows 10 or Ubuntu 20.04.2 or Amazon Linux 2
  • URLs (if applicable):
  • Node.js version: 15.14.0

What happens instead?

Puppeteer crashes with the following message:

.../node_modules/puppeteer/lib/cjs/puppeteer/common/assert.js:26                                                                            
        throw new Error(message);                                               
              ^                         
                                        
Error: target should exist before targetInfoChanged
    at Object.assert (.../node_modules/puppeteer/lib/cjs/puppeteer/common/assert.js:26:15)          
    at Browser._targetInfoChanged (.../node_modules/puppeteer/lib/cjs/puppeteer/common/Browser.js:205:21)                                   
    at .../node_modules/puppeteer/lib/cjs/vendor/mitt/src/index.js:51:62                            
    at Array.map (<anonymous>)
    at Object.emit (.../node_modules/puppeteer/lib/cjs/vendor/mitt/src/index.js:51:43)
    at Connection.emit (.../node_modules/puppeteer/lib/cjs/puppeteer/common/EventEmitter.js:72:22)
    at Connection._onMessage (.../node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:115:18)
    at WebSocket.<anonymous> (.../node_modules/puppeteer/lib/cjs/puppeteer/node/NodeWebSocketTransport.js:13:32)
    at WebSocket.onMessage (.../node_modules/ws/lib/event-target.js:132:16)
    at WebSocket.emit (node:events:369:20)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 17 (6 by maintainers)

Most upvoted comments

I can confirm this issue. Maybe that’s related to the fact that the page does (via JS) a reload?