Gateway status script "ERROR: Unexpected end of file from server"

I am using Ignition 8.0.7 with SSL.

Under gateway network, I have forced the traffic to go through HTTPS. I have the certificate installed and am able to launch the client using client launcher.

I have a local computer which also has a project and acts as a fallback when it can’t connected to primary or secondary ignition server. As part of retarting the script from the local fallback, i check the gateway status and I use the following code.

primary_gatewayadd = system.tag.read(“IP of the primary ignition Server in Memory type string”).value
the value is like : ip:8043/main
status = system.util.getGatewayStatus(primary_gatewayadd)
print status

when I print the status it returns ERROR: Unexpected end of file from server Also when i used ip:8088:8043 it returned with Unknown status.

Please note on the local computer I also have the firewall disabled. The certificates are installed under .ignition/clientlauncher-data/certificates folder.

Please advice

Don’t use /main at the end of the URL, it’s no longer necessary in 8.0.

Thank you for your prompt reply. I still get the same error with or without main.

With the help of Ignition support, I was able to get the resolution. When the SSL is configured the “system.util.getGatewayStatus” looses the scope to see the gateway status.

Using the following command will get the status and additional details about the gateway
“system.net.httpGet(ipaddr:8043)”

Now to parse the running status text from the previous systax use this
.split(";")[0].split("=")[1]

ex:
fullgatewaystatus = system.net.httpGet(abcd.com:8043)
runSTATUS = fullgatewaystatus.split(";")[0].split("=")[1]

please make sure to add error trap script because if the gateway is not connected then the httpGet syntax error’s out and terminates the entire script…