Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Error when scrapping metabase website #1181

Open
dobobaie opened this issue Nov 19, 2018 · 0 comments
Open

Error when scrapping metabase website #1181

dobobaie opened this issue Nov 19, 2018 · 0 comments

Comments

@dobobaie
Copy link

dobobaie commented Nov 19, 2018

Hi,

My company use Metabase to share all ours data and make analytics. I would like to use Zombie to scrap a specific parameter in every question.

The problem is I've got this error when I sailed to the login page :
Error: Errors detected in definition of Lexer: Token class: ->NullaryAggregation<- missing static 'PATTERN' property----------------------- Token class: ->UnaryAggregation<- missing static 'PATTERN' property at new t (http s://stats.metabase.c om/app/dist/vendor.bundle.js?52d110c7445f6d30f2db:126:134814) at Object. (ht tps://stats.metabase.c om/app/dist/app-main.bundle.js?52d110c7445f6d30f2db:5:1161826) at i (ht tps://stats.metabase.c om/app/dist/vendor.bundle.js?52d110c7445f6d30f2db:1:410) at Object. (http s://stats.metabase.c om/app/dist/app-main.bundle.js?52d110c7445f6d30f2db:5:788893) at i (htt ps://stats.metabase.co m/app/dist/vendor.bundle.js?52d110c7445f6d30f2db:1:410) at Object. (https://stats.metabase.c om/app/dist/app-main.bundle.js?52d110c7445f6d30f2db:5:654692) at i (htt ps://stats.metabase.c om/app/dist/vendor.bundle.js?52d110c7445f6d30f2db:1:410) at Object. (h ttps://stats.metabase.co m/app/dist/app-main.bundle.js?52d110c7445f6d30f2db:5:1135139) at i (htt ps://stats.metabase.co m/app/dist/vendor.bundle.js?52d110c7445f6d30f2db:1:410) at Object. (htt ps://stats.metabase.c om/app/dist/app-main.bundle.js?52d110c7445f6d30f2db:5:1134219) in htt ps://stats.metabase.c om/auth/login?redirect=%2F filename: 'http s://stats.metabase.c om/app/dist/app-main.bundle.js?52d110c7445f6d30f2db' }

My code:

const browser = new Browser({ debug: true });

browser.visit('https://stats.metabase.com/auth/login?redirect=%2F', async (result) => {
    console.log(result); // ERROR ABOVE

    await new Promise((resolve) => {
        setTimeout(() => {
            console.log(browser.html()); // html was not fully loaded
            console.log(myLog);
            resolve();
        }, 10000);
    });
});

PS: For the sample I set https://stats.metabase.com/auth/login?redirect=%2F as url
PS2: I don't have this error when I'm on a browser

@dobobaie dobobaie changed the title Error when scrapping some website Error when scrapping metabase website Nov 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant