Skip to main content

Documentation Portal

Troubleshooting

Opening the developer tools (console / network tab)

If one of the solutions in the troubleshooting list refers to 'open the console' or 'open the network tab', these steps can be followed to do so.

The shortcut for all browsers is normally the key 'F12'.

For Firefox and Chrome on Windows and Linux 'Ctrl + Shift + i' should also work.

For Firefox and Chrome on MacOS Command + Option + i' should also work.

Manual steps for each browser are documented below.

Chrome

Official documentation

Firefox

Official documentation

Internet Explorer 11

Left click on the cogwheel in the top right of the browser window.

PI_Vision_16.png

Click on 'F12 Developer Tools'.

This will open the developer tools.

PI_Vision_17.png
Blocked by CORS policy

Quick solution

If PIVision is visited over 'http://', try to visit it over 'https://'.

Problem

When clicking on a correctly configured 'Open in TrendHub' button, nothing happens. When looking at the console it shows an error.

The error shown looks different for each browser:

Chrome

PI_Vision_18.png

Firefox

PI_Vision_19.png

Internet Explorer 11

PI_Vision_20.png

Solution

Make sure that the URL used, exists in the configuration of PI Web API.

To see which URL or 'origin' is allowed, the following link can be visited:

https://PI_SERVER/piwebapi/system/configuration

PI_SERVER should be replaced by the server on which PI is installed. This is the part before '/PIVision' of the URL on which PI Vision can be viewed.

E.g. If http://my-company.something-else.com/PIVision is used to visit PI Vision, the URL for the PI Web API would be https://my-company.something-else.com/PIWebAPI.

Anmerkung

Depending on how the server is configured, this might show a screen that says 'Insecure connection'.

When visiting this URL, a response will be shown including the 'CorsOrigins' (see following figure).

The 'CorsOrigins' list should contain the 'origin' on which PI Vision is visited.

PI_Vision_21.png

E.g. http://tm-pi2018.ad.trendminer.net/PIVision is used, the 'origin' in this case is 'http://tm-pi2018.ad.trendminer.net', which is not in the list of 'CorsOrigins'. However 'https://tm-pi2018.ad.trendminer.net' is in the list of 'CorsOrigins'.