redux-offline-docs icon indicating copy to clipboard operation
redux-offline-docs copied to clipboard

Processing error when trying to upload to google play books EPUB

Open aowongster opened this issue 8 years ago • 7 comments

Hello,

I get errors when trying to upload the epub version to google play books: https://play.google.com/books/uploads

The error details directs me to try to validate the epub file http://validator.idpf.org/

to which I get error results when updating and trying to validate the file.

Sample common error from the validator: Error while parsing file 'attribute "spellcheck" not allowed here; expected attribute "dir", "id", "lang", "style", "title" or "xml:lang"'.

Any ideas on how to fix this?

aowongster avatar May 21 '16 06:05 aowongster

Thanks for reporting this problem.

I can reproduce the validation errors.

I checked my local version of the gitbook-cli and gitbook npm packages, hoping an update might fix them. I reinstalled my gitbook-cli and gitbook npm packages. Using node v5.9.1 (gitbook still has some issues with v6), latest gitbook-cli and gitbook 2.4.3 (per redux gitbook config).

Unfortunately I still receive a similar amount and kinds of validation errors.

For what it's worth, here's the full log of warnings I get when converting the books:

info: loading book configuration....
warn: gitbook version specified in your book.json might be too strict for future patches, "2.x.x" is more adequate
info: OK
info: load plugin gitbook-plugin-edit-link ....OK
info: load plugin gitbook-plugin-prism ....OK
info: load plugin gitbook-plugin-github ....OK
info: load plugin gitbook-plugin-anker-enable ....OK
info: >> 4 plugins loaded
info: start generation with pdf generator
info: clean pdf generatorOK
warn: page docs/FAQ.md contains an hyperlink to resource outside spine "introduction/Examples.html#real-world"
warn: page docs/FAQ.md contains an hyperlink to resource outside spine "advanced/AsyncActions.md]"
warn: page docs/advanced/README.md contains an hyperlink to resource outside spine "UsageWithReactRouter.md"
warn: page docs/advanced/README.md contains an hyperlink to resource outside spine "NextSteps.md"
info: write SUMMARY.html
info: start conversion to pdf ....OK
info: generation is finished
info: >> 1 file(s) generated

Done, without error
info: loading book configuration....
warn: gitbook version specified in your book.json might be too strict for future patches, "2.x.x" is more adequate
info: OK
info: load plugin gitbook-plugin-edit-link ....OK
info: load plugin gitbook-plugin-prism ....OK
info: load plugin gitbook-plugin-github ....OK
info: load plugin gitbook-plugin-anker-enable ....OK
info: >> 4 plugins loaded
info: start generation with epub generator
info: clean epub generatorOK
warn: page docs/FAQ.md contains an hyperlink to resource outside spine "introduction/Examples.html#real-world"
warn: page docs/FAQ.md contains an hyperlink to resource outside spine "advanced/AsyncActions.md]"
warn: page docs/advanced/README.md contains an hyperlink to resource outside spine "UsageWithReactRouter.md"
warn: page docs/advanced/README.md contains an hyperlink to resource outside spine "NextSteps.md"
info: write SUMMARY.html
info: start conversion to epub ....OK
info: generation is finished
info: >> 1 file(s) generated

Done, without error
info: loading book configuration....
warn: gitbook version specified in your book.json might be too strict for future patches, "2.x.x" is more adequate
info: OK
info: load plugin gitbook-plugin-edit-link ....OK
info: load plugin gitbook-plugin-prism ....OK
info: load plugin gitbook-plugin-github ....OK
info: load plugin gitbook-plugin-anker-enable ....OK
info: >> 4 plugins loaded
info: start generation with mobi generator
info: clean mobi generatorOK
warn: page docs/FAQ.md contains an hyperlink to resource outside spine "introduction/Examples.html#real-world"
warn: page docs/FAQ.md contains an hyperlink to resource outside spine "advanced/AsyncActions.md]"
warn: page docs/advanced/README.md contains an hyperlink to resource outside spine "UsageWithReactRouter.md"
warn: page docs/advanced/README.md contains an hyperlink to resource outside spine "NextSteps.md"
info: write SUMMARY.html
info: start conversion to mobi ....OK
info: generation is finished
info: >> 1 file(s) generated

Next I tried upgrading gitbook to the just-released version 3.0.0 in redux's book.json but then ran into this gitbook issue: https://github.com/GitbookIO/gitbook/issues/1244 :(

Sorry, tried my best. I think this is a gitbook/redux docs interplay issue.

paulkoegel avatar May 21 '16 18:05 paulkoegel

Found a way to upgrade gitbook to 3.0.0. The only two kinds of validation errors i get now are:

  1. Error while parsing file 'value of attribute "lang" is invalid; must be an RFC 3066 language identifier'. (2 times)
  2. Referenced resource could not be found in the EPUB. (2 screens full)

I've made a new build and uploaded them in ef2176c6aa0bd375839b7311867eff9aa3e8b4d3. Could you try adding the ePub to google books again?

paulkoegel avatar May 21 '16 19:05 paulkoegel

Hi @paulkogel,

The book uploads and validates properly but it's only the table of contents of 9 pages.

The new file size is: 18.5Kb vs 587Kb compared to the previous commit.

aowongster avatar May 21 '16 21:05 aowongster

ah, I forgot to adjust some paths in redux's docs/README.md. now the usual validation errors are back :( uploaded versions built with gitbook 3.0.0 in latest commit (https://github.com/paulkogel/redux-offline-docs/commit/882f1d695f69602acd11156a2eee0997650f935a). please try uploading again, but i don't have very high hopes the problem will be fixed :(

paulkoegel avatar May 21 '16 21:05 paulkoegel

And one more attempt with the latest version of Calibre (the program used to convert to ePub): 1ddf1b8977cb4cf6a6c46cd04dee48fc025e0990 Still getting the same kind of Validation errors, though :(

paulkoegel avatar May 22 '16 09:05 paulkoegel

Thanks for spending the time to look into this issue. Meanwhile I think I'll get by with the PDF :)

aowongster avatar May 22 '16 18:05 aowongster

No problem. I've used this app to read the Redux docs on Android: ePUB EBook Reader Skoob

paulkoegel avatar May 22 '16 18:05 paulkoegel