Ignition HTTP GET Request Works in Script Console, But Not Session

Hello! I'm new to Ignition and API development and I am running into an issue in my project. I'm following along with a tutorial on how to implement search for perspective map using the Nominatim API. Here's the link to the video for reference. here .

I've followed along with the video exactly without issue until I get to the API get request (about 19:05 in the video). Here is my script for the button click:
image

In the tutorial, when the script is run in the session, the JSON object is returned in the console. However, when I run it in the session, nothing is returned in the console. When I run it in the designer preview mode, I get this vague error message:

What is confusing to me is that when I run this in the designer script console, it runs perfectly. Additionally, when I paste the get request URL into Postman, it also returns the JSON successfully. This makes me think it may be some sort of IA issue? I am on the latest version of Ignition.

Can you post any additional error details from the Details tab?

When you run this in the Designer script console, or from Postman, you are executing the script on the machine that is running those applications.

When you run this as part of your Perspective session it's executing on whatever machine is running the Ignition Gateway.

There's likely a network or permissions problem preventing this from working when run on the Ignition Gateway.

1 Like

Here's the details tab:

How do I go about solving this?

This likely means your IT department MITMs your traffic and you need to get the root certificate they use to do so and add it to Ignition's trusted certificates.

See Security Certificates | Ignition User Manual

1 Like