Defect #1608
When running plugins.VelocityReport.getPDFReport('contract.html', json) the error no protocol apears in the servoy admin log
Start date:
10/29/2025
Due date:
% Done:
0%
Estimated time:
Browser (if web client):
Description
Hi Patrick,
When I run var byteArray = plugins.VelocityReport.getPDFReport('contract.html', json); the error no protocol apears in the servoy admin log.
What could be the issue?
I am using version 3.9.6.
Regards,
Gerard Immeker
History
Updated by Gerard Immeker 3 months ago
You can close the issue, found the problem.
On my localhost the velocityreport.serverURL was not set
Updated by Patrick Talbot 3 months ago
Indeed a base URL is needed for the XML parser to locate possible referenced external files to include and create a XML Document that the renderer can then create a PDF from... So the velocityreport.serverURL is used for this (among others things :)).
In later versions (starting v3.9.7 - see https://www.servoyforge.net/news/699 ) I'm setting a default URL if velocityreport.serverURL is not set.