This error is generated when an HTML file attempts to load an asset from our server's file system. This is normally caused by using a relative or protocol-less URL for an external asset without also defining a baseurl. 

These are examples of URLs that are not allowed:

//yourdomain.com/style.css
/scripts/application.js

To fix this issue, you must do one of the following:

  1. Use an absolute URL (begins in http:// or https://)
  2. Use the prince_options[baseurl] API parameter to inform us which URL to use to create absolute URLs on your behalf
  3. Use a <base> tag in your document <head>, which will also inform us which URL to use to create absolute URLs on your behalf

If you're working on a local development machine, we have some additional tips on how to test your DocRaptor setup while on localhost.

Did this answer your question?