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
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:
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