case 4398
This commit is contained in:
@@ -93,6 +93,7 @@ Command line parameters are appended to the command to start the ayanova server,
|
||||
|
||||
- [AYANOVA_REPORT_RENDER_BROWSER_PATH](ops-config-report-render-browser-path.md)
|
||||
- [AYANOVA_REPORT_RENDERING_TIMEOUT](ops-config-report-rendering-timeout.md)
|
||||
- [AYANOVA_REPORT_RENDER_API_URL_OVERRIDE](ops-config-report-rendering-api-url-override.md)
|
||||
|
||||
### SECURITY
|
||||
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
# 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"
|
||||
|
||||
Reports are rendered by a "headless" web browser running at the AyaNova server which executes the javascript required to render the report. Most report scripts will need to contact the AyaNova API to fetch data like translations or logos. In some scenarios such as some specific configurations when using IIS as the front end for AyaNova the local headless browser is prevented from contacting the AyaNova server due to accessing it via the `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 `https://ayanova.example.com`.
|
||||
|
||||
## Default
|
||||
|
||||
If no override is specified AyaNova will use the following internal default value:
|
||||
|
||||
`http://127.0.0.1:{Port}`
|
||||
|
||||
|
||||
|
||||
## Overriding
|
||||
|
||||
AyaNova expects this value to be provided by a config.json property, environment variable or command line parameter named
|
||||
|
||||
`AYANOVA_REPORT_RENDER_API_URL_OVERRIDE`
|
||||
|
||||
The value specified should be a string specifying the external URL used to connect to AyaNova, for example:
|
||||
`https://ayanova.example.com`
|
||||
|
||||
Example config.json entry
|
||||
|
||||
```json
|
||||
{
|
||||
...other properties...
|
||||
"AYANOVA_REPORT_RENDER_API_URL_OVERRIDE": "https://ayanova.example.com"
|
||||
}
|
||||
```
|
||||
|
||||
Example command line parameter
|
||||
|
||||
`ayanova.exe --AYANOVA_REPORT_RENDER_API_URL_OVERRIDE="https://ayanova.example.com"`
|
||||
|
||||
Example environment variable
|
||||
|
||||
Windows
|
||||
|
||||
`set "AYANOVA_REPORT_RENDER_API_URL_OVERRIDE=https://ayanova.example.com"`
|
||||
|
||||
Linux
|
||||
|
||||
`export AYANOVA_REPORT_RENDER_API_URL_OVERRIDE="https://ayanova.example.com"`
|
||||
@@ -379,6 +379,16 @@ Let's Encrypt provides free SSL certificates and lists [several Windows clients]
|
||||
|
||||
The very first time a report is rendered in AyaNova there will be a delay while the Chromium browser report rendering components are installed.
|
||||
|
||||
#### Report rendering error
|
||||
|
||||
In some cases there may be a futher setting required for report rendering.
|
||||
|
||||
If you render a report and see this error:
|
||||
|
||||
`JobFailed: PuppeteerSharp -> Evaluation failed: TypeError: Failed to fetch at ayPostToAPI`
|
||||
|
||||
You will need to set the [AYANOVA_REPORT_RENDER_API_URL_OVERRIDE](ops-config-report-rendering-api-url-override.md) setting in the [AyaNova server configuration](#5-ayanova-server-configuration) to your AyaNova server's external URL address to enable report rendering for your configuration.
|
||||
|
||||
#### Getting started and using AyaNova
|
||||
|
||||
The next step is to [login](ay-start-login.md), request or install a [license](adm-license.md) and if are trying out AyaNova for the first time follow the [evaluation trial guide](ay-evaluate.md).
|
||||
|
||||
@@ -191,6 +191,7 @@ nav:
|
||||
- 'Server temporary files folder': 'ops-config-folder-temporary-files.md'
|
||||
- 'Database configuration': 'ops-config-db.md'
|
||||
- 'PORT and URL configuration': 'ops-config-use-urls.md'
|
||||
- 'Reporting render API URL override': 'ops-config-report-rendering-api-url-override.md'
|
||||
- 'Reporting render browser path': 'ops-config-report-render-browser-path.md'
|
||||
- 'Reporting timeout configuration': 'ops-config-report-rendering-timeout.md'
|
||||
- 'Environment variable reference': 'ops-config-environment-variables.md'
|
||||
|
||||
Reference in New Issue
Block a user