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

Readability: Cannot read property 'trim' of null #7

Open
MrOrz opened this issue Sep 29, 2018 · 0 comments
Open

Readability: Cannot read property 'trim' of null #7

MrOrz opened this issue Sep 29, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@MrOrz
Copy link
Member

MrOrz commented Sep 29, 2018

When resolving http://web.tccf.org.tw/lib/addon.php?act=post&id=3178, such error message would occur:

[GET] http://web.tccf.org.tw/lib/addon.php?act=post&id=3178 - 22923 - 2605ms
[scrap][executor] http://web.tccf.org.tw/lib/addon.php?act=post&id=3178 - Error: Evaluation failed:TypeError: Cannot read property 'trim' of null
    at Readability.<anonymous> (__puppeteer_evaluation_script__:1225:36)
    at HTMLCollection.forEach (<anonymous>)
    at Readability._forEachNode (__puppeteer_evaluation_script__:215:29)
    at Readability._getArticleMetadata (__puppeteer_evaluation_script__:1210:10)
    at Readability.parse (__puppeteer_evaluation_script__:1790:25)
    at executor (__puppeteer_evaluation_script__:1829:36)
    at __puppeteer_evaluation_script__:1831:16
    at __puppeteer_evaluation_script__:1832:8

The error is caught properly and the fallback script do fetch some summary, though.

@MrOrz MrOrz added the bug Something isn't working label Sep 29, 2018
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

1 participant