system.net.httpGet IOError

I am using system.net.httpGet(url, contentType=“application/xml”) to read an XML from restful web service, but when I use this code I am getting below error

com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File “”, line 4, in IOError: Portal.MoldAndDieMonitor.com

at org.python.core.Py.fromIOException(Py.java:215)

at org.python.core.Py.IOError(Py.java:178)

at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpGet(AbstractNetUtilities.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.python.core.PyReflectedFunction.call(PyReflectedFunction.java:186)

at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction.call(ScriptManager.java:435)

at org.python.core.PyObject.call(PyObject.java:320)

at org.python.pycode._pyx555.f$0(:10)

at org.python.pycode._pyx555.call_function()

at org.python.core.PyTableCode.call(PyTableCode.java:165)

at org.python.core.PyCode.call(PyCode.java:18)

at org.python.core.Py.runCode(Py.java:1275)

at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:647)

at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:606)

at com.inductiveautomation.ignition.common.script.TimerScriptTask.run(TimerScriptTask.java:86)

at java.util.TimerThread.mainLoop(Unknown Source)

at java.util.TimerThread.run(Unknown Source)

Caused by: org.python.core.PyException: Traceback (most recent call last): File “”, line 4, in IOError: Portal.MoldAndDieMonitor.com

… 20 common frames omitted

Can you post your code as well?

Is that the full error message or is there more to it?

Have you tried using a restful API tool to confirm outside of Ignition that you are getting back what you expect?