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

'Page.setLifecycleEventsEnabled' wasn't found undefined #1271

Closed
dustyhorizon opened this issue Nov 3, 2017 · 1 comment
Closed

'Page.setLifecycleEventsEnabled' wasn't found undefined #1271

dustyhorizon opened this issue Nov 3, 2017 · 1 comment

Comments

@dustyhorizon
Copy link

dustyhorizon commented Nov 3, 2017

Puppeteer version: master
Platform / OS version: ubuntu:17.04 (using google-chrome-unstable in a container)

Not sure what happened but kept getting the following

Error: Protocol error (Page.setLifecycleEventsEnabled): 'Page.setLifecycleEventsEnabled' wasn't found undefined
sierra_1             |     at Session._onMessage (/opt/app/node_modules/puppeteer/lib/Connection.js:194:25)
sierra_1             |     at Connection._onMessage (/opt/app/node_modules/puppeteer/lib/Connection.js:98:19)
sierra_1             |     at emitOne (events.js:115:13)
sierra_1             |     at WebSocket.emit (events.js:210:7)
sierra_1             |     at Receiver._receiver.onmessage (/opt/app/node_modules/ws/lib/WebSocket.js:143:47)
sierra_1             |     at Receiver.dataMessage (/opt/app/node_modules/ws/lib/Receiver.js:389:14)
sierra_1             |     at Receiver.getData (/opt/app/node_modules/ws/lib/Receiver.js:330:12)
sierra_1             |     at Receiver.startLoop (/opt/app/node_modules/ws/lib/Receiver.js:165:16)
sierra_1             |     at Receiver.add (/opt/app/node_modules/ws/lib/Receiver.js:139:10)
sierra_1             |     at Socket._ultron.on (/opt/app/node_modules/ws/lib/WebSocket.js:139:22)
sierra_1             |     at emitOne (events.js:115:13)
sierra_1             |     at Socket.emit (events.js:210:7)
sierra_1             |     at addChunk (_stream_readable.js:264:12)
sierra_1             |     at readableAddChunk (_stream_readable.js:251:11)
sierra_1             |     at Socket.Readable.push (_stream_readable.js:209:10)
sierra_1             |     at TCP.onread (net.js:587:20)

EDIT: tested and found commit ac55e69 was causing this. commit fede264 had no issues.

@aslushnikov
Copy link
Contributor

@dustyhorizon you somehow use new puppeteer with and old chrome that doesn't support Page.setLifecycleEventsEnabled method.

Make sure you run npm install in pptr folder to download a new chromium.

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