BCcampus / pressbooks-mpdf

[UNMAINTAINED] open source HTML to PDF conversion
GNU General Public License v2.0
7 stars 7 forks source link

EventStream Connection Error when trying to export #76

Closed pjohanneson closed 5 years ago

pjohanneson commented 5 years ago

Description

Can't export to PDF -- I get EventStream Connection Error when attempting to export a book.

Expected behaviour

I want to be able to export my book to PDF. Other exports are successful.

Actual behaviour

When attempting to export to PDF, I get the error message EventStream Connection Error.

Steps to reproduce the problem

System Information

bdolor commented 5 years ago

@pjohanneson I suspect the error is being thrown here: https://github.com/pressbooks/pressbooks/blob/c28981f5cf6c35e7fb8b90dda88e633d1efff423/assets/src/scripts/export.js#L80

I've tried recreating this locally but cannot. Export functionality works as expected.

BTW I will be releasing a patch version of mPDF shortly, but I'm not sure it will address the issue you're experiencing.

Has mPDF worked for you before or is this a new install?

pjohanneson commented 5 years ago

This is a new install of mPDF, though I've had PressBooks installed for a while. I may spin up a VM and see if I can make the error happen again.

bdolor commented 5 years ago

If it's a content related problem and your book is openly licensed/shareable you could point to it and we could troubleshoot from there.

pjohanneson commented 5 years ago

Fixed. I was using a Github-sourced version of the plugin, and I hadn't run composer install, so I was missing dependencies. Mea culpa.