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

Processing error when trying to upload to google play books EPUB #6

Open
aowongster opened this issue May 21, 2016 · 7 comments
Open

Comments

@aowongster
Copy link

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 aowongster changed the title Processing error when trying to upload to google play books Processing error when trying to upload to google play books EPUB May 21, 2016
@paulkoegel
Copy link
Owner

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: GitbookIO/gitbook#1244 :(

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

paulkoegel pushed a commit that referenced this issue May 21, 2016
@paulkoegel
Copy link
Owner

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 ef2176c. Could you try adding the ePub to google books again?

@aowongster
Copy link
Author

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.

paulkoegel pushed a commit that referenced this issue May 21, 2016
…ok to v3.0.0 in redux repo"

This reverts commit ef2176c.
@paulkoegel
Copy link
Owner

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 (882f1d6).
please try uploading again, but i don't have very high hopes the problem will be fixed :(

@paulkoegel
Copy link
Owner

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

@aowongster
Copy link
Author

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

@paulkoegel
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants