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

getting stuck on fresh install trying to compile the jverse-the-deathworlders.json spec #7

Closed
chaixdev opened this issue May 26, 2018 · 1 comment

Comments

@chaixdev
Copy link

chaixdev commented May 26, 2018

hi,
thanks for making your work on this tool public. i just did a fresh install and wanted to copmile the deathworlders as ebook, but afte rthe first few posts it got stuck. stacktrace is as follows:

λ node ebook.js specs\jverse-the-deathworlders.json
[Fetched] HFY_comments_2ftcpy
[Fetched] HFY_comments_2ftfyo_text_the_kevin_jenkins_experience_chapter_3
[Fetched] HFY_comments_2ftdrl_text_the_kevin_jenkins_experience_chapter_1_part
[Fetched] HFY_comments_2ftevq_text_the_kevin_jenkins_experience_chapter_2
[Fetched] HFY_comments_2vpp8e_ocjverse_17_battles_part_24
[Fetched] HFY_comments_2vpp9m_ocjverse_17_battles_part_34
[Fetched] HFY_comments_2vpp5v_ocjverse_17_battles_part_14
[Fetched] HFY_comments_2qhp6u_oc_jenkinsverse_15_forever_changed_pt_2
[Fetched] HFY_comments_2jf769_jenkinsverse_55_interlude_and_ultimatum
[Fetched] HFY_comments_2tsitq_ocjenkinsverse16_firebird_pt_12
[Fetched] HFY_comments_2kc8ls_oc_jenkinsverse_65_interludejargon
[Fetched] HFY_comments_2h6grb_oc_kevin_jenkins_an_eventful_month
[Fetched] HFY_comments_2inz1g_jenkinsverse_4_quarantine
[Fetched] HFY_comments_2vppaj_ocjverse_17_battles_part_44
R: ++End Chapter 17++
R: ++End Chapter 17++
[Fetched] HFY_comments_2kmpir_oc_jenkinsverse_7_tensions
R: ++End chapter 7++
[Fetched] HFY_comments_2fuo5o_oc_run_little_monster
[Fetched] HFY_comments_2tsmxm_ocjenkinsverse_16_firebird_pt_22
R: ++End of Chapter 16++
R: ++End of Chapter 16++
[Fetched] HFYA_deathworlders_chapter-03-aftermath
D:\hfyEbook\filters\finalize.js:51
        if(last.type === 'text' && last.data.search(newl) > -1)
                ^

TypeError: Cannot read property 'type' of undefined
@chaixdev
Copy link
Author

i seem to have fixed it by adding an and condition to the if.
finalise.js:51 : if(last && last.type === 'text' && last.data.search(newl) > -1)

also i ran in to another error a little later,

...
[Fetched] HFY_comments_2qhp70_oc_jenkinsverse_15_forever_changed_pt_3
R: ++END CHAPTER 15++
R: ++END CHAPTER 15++
D:\chaidev\github\hfyEbook\filters\from-hfy-archive.js:24
        if(response.statusCode === 503)
                    ^

TypeError: Cannot read property 'statusCode' of undefined
...

which i seem to have fixed by adding an or

from-hfy-archive.js:24 if(!response || response.statusCode === 503)

it seems to have printed my ebook, i'm happy :D thanks man!

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