Report rendering api override setting¶
The report rendering api override setting is used in situations where report rendering code is unable to contact the local AyaNova api server via it's localhost address.
The symptom of this issue is reports failing to render with an error displayed containing text similar to "JobFailed: PuppeteerSharp -> Evaluation failed: TypeError: Failed to fetch at ayPostToAPI"
localhost address. In these situations it's necessary to tell the script to use an alternative external address (the same address used by the AyaNova web program used at the browser).
What to do if you need to set this value¶
This value should be set to the URL that external users on the internet use to connect to the AyaNova web application.
So, for example, if your AyaNova server is normally connected to in a web browser at the url
https://ayanova.example.com to use the AyaNova web application then you would set this value to exactly that
If no override is specified AyaNova will use the following internal default value:
AyaNova expects this value to be provided by a config.json property, environment variable or command line parameter named
The value specified should be a string specifying the external URL used to connect to AyaNova, for example:
Example config.json entry
Example command line parameter
Example environment variable