chaleno icon indicating copy to clipboard operation
chaleno copied to clipboard

Chaleno [ Exception ]: XMLHttpRequest error.

Open jeff9315 opened this issue 2 years ago • 3 comments

@antonio-nicolau ... I just started trying your webscraper out. It looks like exactly what I want. however, this is what I put in and the error I got ... Any ideas?

class _HomePageState extends State<HomePage> {
  String? header, subscribeCount, img;

  void scrapData() async {
    print('11111');
    var parser = await Chaleno().load('https://example.com');
    print('2222');
    Result result = parser!.getElementById('id');
    print(result.text);

And I got these messages

11111 Chaleno [ Exception ]: XMLHttpRequest error. 2222 null

jeff9315 avatar May 09 '22 15:05 jeff9315

facing the same error !!

Shiba-Kar avatar Jul 19 '23 09:07 Shiba-Kar

Chaleno [ Exception ]: XMLHttpRequest error. https://webscraper.io/test-sites/e-commerce/allinone/computers/laptops

me too same error

wahyuhidayat-dev avatar Aug 21 '23 02:08 wahyuhidayat-dev

It's been awhile since I had that problem. I've resolved it but I'm not positive how.

Make sure you're using Chanleno V 0.0.6 and that Flutter and Dart are relatively up-to-date. Mine has been running successfully in DOS for close to a year now. I'm running this from DOS rather than from the web. A previous post said web problems related to CORS may be an issue.

Post your code and maybe I can see something. And tell us whether you're running from web, DOS, Android, IOS.

It doesn't look like the author has either answered questions here or published any updates since Jan 2022.

jeff9315 avatar Aug 21 '23 11:08 jeff9315