Hello, I have a problem with the GET method. it work on the local but when I put my projet on the server it does’nt work.
I’m working on a project, I need to display an address on the map. To do this, I use the city name, zip code, and address.
I’m trying to retrieve latitude and logitude using an API
When I run the code on the local, the GET method works, I manage to retrieve the latitude and longitude then the markers are displayed on the map.
But when I run the code on the Server it gives me the error below.
my script
com.inductiveautomation.ignition.common.script.JythonExecException
Traceback (most recent call last):
File “function:runAction”, line 20, in runAction
java.io.IOException: java.io.IOException: Unable to GET https://nominatim.openstreetmap.org/search?q=Rue+du+8+Mai+1945+75010+Paris&format=geocodejson
caused by org.python.core.PyException
Traceback (most recent call last):
File “function:runAction”, line 20, in runAction
java.io.IOException: java.io.IOException: Unable to GET https://nominatim.openstreetmap.org/search?q=Rue+du+8+Mai+1945+75010+Paris&format=geocodejson
caused by IOException: Unable to GET https://nominatim.openstreetmap.org/search?q=Rue+du+8+Mai+1945+75010+Paris&format=geocodejson
caused by ConnectException
caused by ConnectException
caused by UnresolvedAddressException
Ignition v8.1.14 (b2022012711)
Java: Azul Systems, Inc. 11.0.13