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

Parsing fails on 815 txt file? #2

Open
rohitkrishna094 opened this issue Jul 23, 2022 · 0 comments
Open

Parsing fails on 815 txt file? #2

rohitkrishna094 opened this issue Jul 23, 2022 · 0 comments

Comments

@rohitkrishna094
Copy link

https://www.gutenberg.org/ebooks/815.txt.utf-8

The above file might have some content that changed recently which causes an error while parsing. It results in an error as shown below:

Reading File - 815.txt
Reading Book - Democracy In America, Volume 1 (of 2) By Alexis de Toqueville
TypeError: Cannot read property 'index' of null
    at parseBookFile (/usr/src/app/server/load_data.js:41:45)
    at readAndInsertBooks (/usr/src/app/server/load_data.js:19:45)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

For now, temporary fix is to remove https://www.gutenberg.org/ebooks/815.txt.utf-8 from download_links.txt file. But if this book is important, then I guess regex might have to be updated while getting the "START" match.

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