Forum Bugs

Ajax Errors


I am currently experimenting with the AJAX capabilities of Prince. Every time I call this appears in the console "prince: error: TypeError: invalid this value"

Sample Code:"GET", "", false);

No matter what URL I use the result is always the same.

I am also using a NodeJS Prince wrapper ( which fails because of the TypeError.

When I run from the command line the PDF still gets generated despite the error, but when using the NodeJS wrapper it is considered an error condition and halts execution. Are there settings that will make this error go away? Am I calling open with the wrong parameters? Is this error really just a warning and not a real error?

I am using Prince 10 rev 6 on mac-osx and on the Amazon Web Services version of Linux through AWS Lambda (

Prince doesn't have full support for AJAX yet. That said this is a bug relating to the onreadystatechange event dispatch not being handled properly and triggering a spurious error message. Sorry about that, we will fix this in the next release.
Thanks for the quick reply!
This issue is now fixed in the latest build. However, Prince still only supports a small subset of AJAX, eg. only GET, all requests are synchronous, not all object methods are supported, etc.
That's great, thanks for the update.