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

exception with websocket #2

Open
focode opened this issue Mar 5, 2020 · 1 comment
Open

exception with websocket #2

focode opened this issue Mar 5, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@focode
Copy link

focode commented Mar 5, 2020

I am trying to run this code from the example:

import 'package:puppeteer/puppeteer.dart';

void main() async {
  // Download the Chromium binaries, launch it and connect to the "DevTools"
  var browser = await puppeteer.launch();

  // Open a new tab
  var myPage = await browser.newPage();

  // Go to a page and wait to be fully loaded
  await myPage.goto('https://www.github.com', wait: Until.networkIdle);

  // Do something... See other examples
  await myPage.screenshot();
//  await myPage.pdf();
  await myPage.evaluate('() => document.title');

  // Gracefully close the browser's process
  await browser.close();
}

and I am getting this exception:

Unhandled exception:
Exception: Websocket url not found
#0      _waitForWebSocketUrl (package:puppeteer/src/puppeteer.dart:311:3)
<asynchronous suspension>
#1      Puppeteer.launch (package:puppeteer/src/puppeteer.dart:170:30)
<asynchronous suspension>
#2      main (file:///D:/project/IOT-KT/dl/puppy1/test/puppy1_test.dart:8:33)
#3      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:307:19)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
@truongsinh truongsinh added the bug Something isn't working label Mar 9, 2020
@truongsinh
Copy link
Owner

Thank you for reporting. I'm traveling right now, and will get back to this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants