Parchment sitegen output does not run story?

I have made a curl request to the Parchment site generator as

curl -o mystory.html -F "story_file=@mystory.zblorb" https://iplayif.com/api/sitegen

which did produce an HTML file. However, this HTML file results in a blank page with no apparent activity. (Javascript profiler in the browser developer tools indicates 100 % idle time, too.)

In the HTML file is a script block defining a json object called parchment_options. I tried searching for other occurrences of this name in the file and found nothing – does the file not use the parchment_options? Is Parchment even in the file? So many questions, so hard to tell from the minified JS!

I have tried both with a zblorb and a z5 story file directly, also someone else’s story file, with the same result every time.

I was going to try to troubleshoot this myself but if I clone the repository for the iplayif app and hard-code the metadata for my file (because I don’t have babel-tool installed – that’d be the next thing to try) then the generator when running under npm locally just works. Hm.

Edit: works locally also when getting metadata from babel-tool. The plot thickens!

Edit 2: There’s a significant difference between the HTML file I get out of my local process and that on iplayif.com. The one from iplayif.com is truncated at just over 100 kB, whereas the one I build locally is 3.5 MB.

My best guess is that there’s nothing wrong with the code, but that an intermediate proxy cuts off responses at 100-some kB.

I used iplayif.com recently (in Firefox), and the generated HTML it gave me was 3.6MB and worked okay. That was with a Z5 file (not a blorb).

Does the file you get end with </html> ?

I have tried both Firefox, Chrome, and curl, and in all cases the response is truncated at 105 kB. It does not end with </html>. The last line of the file I get is the base64 encoded storyfile, but chopped off before it gets to the end of it. (Or at least I assume so, because the trailing <⁄script> tag is not there, and the base64 data does not end on equals signs, which seems like a good bet if it was complete.)

I just tried a blorb and get a truncated file too.

Perhaps blorbs are not supported?

P.S. tried the same Z5 file and get a truncated result. Something is wrong with iplayif.com.

1 Like

No, it definitely shouldn’t be truncating anything. I haven’t touched the site in weeks though, so this is quite odd.

1 Like

I used it on the 25th, and it worked then.

Maybe cloudfare is being DDoSed again?

I’ve tried disabling Cloudflare caching, and now it’s telling me to ā€œcheck internet connectionā€ instead of downloading a file.

And Parchment seems broken too. Oh dear.

Ah, the server is full again. But no space to install ncdu to figure out why!

I’m doing some spring cleaning on the server, hold still..

Okay server has been tidied up and the sitegen seems to be working now.

3 Likes

Ah, full disk – the great imitator. I should have guessed! Thanks for fixing.