Sometimes PDF doesn't generate, no errors are shown? #10

Closed
opened 2 years ago by decentral1se · 9 comments
Owner

I don't know quite what is happening but when I load say, http://localhost:5001/newsletter/pdf/, the page loads & does do something but then there is no PDF inside the iframe when I scroll around. There are no logs reported on the terminal. Unsure if something went wrong or it is a browser thing? I am using Firefox now with octomode.

Small video to show it:

https://vvvvvvaria.org/~decentral1se/octomode/nopdf.mp4

I don't know quite what is happening but when I load say, http://localhost:5001/newsletter/pdf/, the page loads & does do something but then there is no PDF inside the iframe when I scroll around. There are no logs reported on the terminal. Unsure if something went wrong or it is a browser thing? I am using Firefox now with octomode. Small video to show it: > https://vvvvvvaria.org/~decentral1se/octomode/nopdf.mp4
mb commented 2 years ago
Owner

Hmm, not sure what happens there.

Did you add the mini templates to the "pad" (in markdown) and "stylesheet" (in css)?

Octomode needs this in order to render a pdf.

I wrote some documentation on Rosa about these templates, this was a good incentive to move it to the README here :) --> https://git.vvvvvvaria.org/varia/octomode/src/branch/master/README.md

Hmm, not sure what happens there. Did you add the mini templates to the "pad" (in markdown) and "stylesheet" (in css)? Octomode needs this in order to render a pdf. I wrote some documentation on Rosa about these templates, this was a good incentive to move it to the README here :) --> https://git.vvvvvvaria.org/varia/octomode/src/branch/master/README.md
Poster
Owner

Did you add the mini templates to the "pad" (in markdown) and "stylesheet" (in css)? Octomode needs this in order to render a pdf.

Yeah the weird thing is that this is the newsletter pad that generates SomeTimes (http://localhost:5001/newsletter/pdf/). But I am loading it from my locally hosted ocotomode to look at it ;) It's strange because it was working and then suddenly not! I suspect this will be a hard bug to find :(

I wrote some documentation on Rosa about these templates, this was a good incentive to move it to the README here :) --> https://git.vvvvvvaria.org/varia/octomode/src/branch/master/README.md

Lovely!

> Did you add the mini templates to the "pad" (in markdown) and "stylesheet" (in css)? Octomode needs this in order to render a pdf. Yeah the weird thing is that this is the newsletter pad that generates SomeTimes (http://localhost:5001/newsletter/pdf/). But I am loading it from my locally hosted ocotomode to look at it ;) It's strange because it was working and then suddenly not! I suspect this will be a hard bug to find :( > I wrote some documentation on Rosa about these templates, this was a good incentive to move it to the README here :) --> https://git.vvvvvvaria.org/varia/octomode/src/branch/master/README.md Lovely!
mb commented 2 years ago
Owner

Does the console of your browser say anything?

Does the console of your browser say anything?
Poster
Owner

Does the console of your browser say anything?

Nope 🤔 Can try to reproduce the bug with you the next time we meet 😆

> Does the console of your browser say anything? Nope 🤔 Can try to reproduce the bug with you the next time we meet 😆
Poster
Owner

O C T O

M O D E

G H O S T

B U G

O C T O M O D E G H O S T B U G
mb commented 2 years ago
Owner

lol, oke yes let's do that :---)

lol, oke yes let's do that :---)
Owner

I was working on a small publication in Octomode today (online on octomode.varia.org) for about an hour when paged.js seemed to stop working and I had the same as @decentral1se - no PDF viewable on the page where it usually is rendered by paged.js polyfill. On inspection, some errors were caught in the console (see screenshot)

I was working on a small publication in Octomode today (online on octomode.varia.org) for about an hour when paged.js seemed to stop working and I had the same as @decentral1se - no PDF viewable on the page where it usually is rendered by paged.js polyfill. On inspection, some errors were caught in the console (see screenshot)
Owner

Hmm - I removed something from the CSS and voila, it works again.

This is what I removed from the @page declaration: counter-increment: section;

Hmm - I removed something from the CSS and voila, it works again. This is what I removed from the @page declaration: `counter-increment: section;`
Poster
Owner

sick debugging skills @simoon it is indeed back! will close this off 📪

one idea i had from all this is that it would be nice to able to pin a "version" of a .md + .css pad which outputs a pdf. this could be connected with a revision of both pads, so you can freeze a "version" which you know works. then hacking can continue as usual and at some point, you can make the new release, pick the latest revision of the pads.

sick debugging skills @simoon it is indeed back! will close this off 📪 one idea i had from all this is that it would be nice to able to pin a "version" of a .md + .css pad which outputs a pdf. this could be connected with a revision of both pads, so you can freeze a "version" which you know works. then hacking can continue as usual and at some point, you can make the new release, pick the latest revision of the pads.
decentral1se closed this issue 2 years ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.