Calling webservice from view event failed

Hello,

On perspective, I have to call a webservices when my view open.

I have a script who run well in the script console. But When fire from the event, I have a error message. I understand it’s a problem of certificate but I don’t know how to resolve it.

Anyone have an idea ?

In the script console, the outgoing HTTP call is being made by your local computer, wherever you're running the designer. To the operating system, it's an HTTP call made by your local user, since it's just a standard program running as you.

Everywhere in Perspective, your scripts are actually running on the Ignition gateway.
That means the outgoing HTTP call is coming from wherever Ignition is actually installed, and by default is running as a limited privilege "service" user. If the host OS is Windows, it's running as the special 'service' account LOCAL_SYSTEM that has limited access to external networks.

In other words: Engage with your IT department to see why the host that runs the gateway cannot reach the other resource.

2 Likes

Ok, I will contact the IT department.

Thank you

I don’t think it’s a network issue. I can access to the webservice (swagger UI) from edge browser on the server.

I think I need to import a certificate somewhere in Ignition but I’m not sure where.

That isn't what Paul is saying.

This can be purely a permissions issue within your Ignition Gateway's OS, at the service level. This would be totally independent of a browser's behavior running in a desktop session in the same machine.

Go back to your IT. Share this post.

1 Like

Problem solved.

I needed to import the server certificate in the %gateway installation directory%data/certificates/supplemental folder