# system.net.httpGet IOError

**URL:** <https://forum.inductiveautomation.com/t/system-net-httpget-ioerror/14176>\
**Category:** Ignition\
**Created:** [May 1, 2017, 2:27pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget-ioerror/14176 "2017-05-01T14:27:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanskith](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@sanskith](https://forum.inductiveautomation.com/u/sanskith)\
**Post date:** [May 1, 2017, 2:27pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget-ioerror/14176/1 "2017-05-01T14:27:28Z")

</div>

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](http://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](http://Portal.MoldAndDieMonitor.com)

… 20 common frames omitted

---

<div class="post-metadata">

**Author:** ![richardNZ15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/richardnz15/32/33373_2.png) [@richardNZ15](https://forum.inductiveautomation.com/u/richardNZ15)\
**Post date:** [May 2, 2017, 4:14am UTC](https://forum.inductiveautomation.com/t/system-net-httpget-ioerror/14176/2 "2017-05-02T04:14:02Z")

</div>

Can you post your code as well?

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [May 2, 2017, 12:06pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget-ioerror/14176/3 "2017-05-02T12:06:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![matt.eaton](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matt.eaton/32/72046_2.png) [@matt.eaton](https://forum.inductiveautomation.com/u/matt.eaton)\
**Post date:** [May 2, 2017, 5:54pm UTC](https://forum.inductiveautomation.com/t/system-net-httpget-ioerror/14176/4 "2017-05-02T17:54:19Z")

</div>

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