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

Some URL's causes library to "hang" #42

Open
florisvink opened this issue Feb 16, 2018 · 0 comments
Open

Some URL's causes library to "hang" #42

florisvink opened this issue Feb 16, 2018 · 0 comments

Comments

@florisvink
Copy link

florisvink commented Feb 16, 2018

Parsing the URL "https://www.zalando.nl/nike-performance-trainingsbroek-blackcool-grey-n1241e0em-q11.html" causes the library to hang. It does not crash, but rather hangs for a very long time at 100% cpu-core consumption. Memory does not increase significantly.

Code to reproduce the problem:

const fetch = require('node-fetch');
const mf = require('microformat-node');

const fetchUrl = url => fetch(url)
    .then(res  => res.text())
    .then(html => mf.getAsync({html}));

fetchUrl('https://www.zalando.nl/nike-performance-trainingsbroek-blackcool-grey-n1241e0em-q11.html')

microformat-node version: 2.0.1
node version: v8.9.4 (also tested with v6.11.5 with same problem)

Could you please give me some pointers where to start looking in the code for a possible cause of this problem. Thanks!

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

1 participant