All Collections
Author Help
Troubleshooting Errors When You Try to Upload an EPUB in Leanpub's Upload Writing Mode
Troubleshooting Errors When You Try to Upload an EPUB in Leanpub's Upload Writing Mode

Keywords: EPUB, troubleshooting, error

Leanpub Support avatar
Written by Leanpub Support
Updated over a week ago
Troubleshooting Errors When You Try to Upload an EPUB in Leanpub's Upload Writing Mode

Occasionally authors contact us saying they get an error when they try uploading an EPUB in our Upload writing mode.

In this article, we'll share author feedback regarding errors and potential solutions.


Invalid URL Error

Here's some feedback (modified for privacy) we had from an author about a particular error involving a link:

I am trying to add an EPUB3 file for my book [LINK]

I get an error doing so.

ERROR(RSC-020): ./books/Bo/databases/eBookIt/temp_uploads/filename.epub/EPUB/_client_side_scripting.xhtml(94,83): "https://websitename.com/{something}" is not a valid URI.

This error is not something I can help I am afraid as this URL is present in the content of my book.

I fixed it by using AsciiDoc conditional statements. Basically, when I render the epub, I change the url to be https://websitename.com/something instead of

We know not everyone can use AsciiDoc conditional statements, but we hope this helps!


If you have any feedback or questions about this article, please email the Leanpub team about it at hello@leanpub.com!

If you have any questions or thoughts on writing and self-publishing with Leanpub, please join our global community of authors in our Authors Forum here!

Are you interested in self-publishing, and creating your first Leanpub book? Here are some quick tutorials for our most popular writing modes: http://help.leanpub.com/en/articles/3088382-quick-walkthroughs-for-getting-started-on-a-leanpub-book

Are you looking for great deals on Leanpub ebooks, ebook bundles, and courses? Sign up for our Weekly and Monthly newsletter sales here!

To learn about amazing new books and authors, subscribe to our YouTube channel here: https://www.youtube.com/leanpub

You can also follow Leanpub in lots of other places!

Did this answer your question?