# system.net.httpClient() no longer working in script console

**URL:** <https://forum.inductiveautomation.com/t/system-net-httpclient-no-longer-working-in-script-console/34322>\
**Category:** Ignition Early Access\
**Created:** [April 30, 2020, 5:51am UTC](https://forum.inductiveautomation.com/t/system-net-httpclient-no-longer-working-in-script-console/34322 "2020-04-30T05:51:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duy](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Duy](https://forum.inductiveautomation.com/u/Duy)\
**Post date:** [April 30, 2020, 5:51am UTC](https://forum.inductiveautomation.com/t/system-net-httpclient-no-longer-working-in-script-console/34322/1 "2020-04-30T05:51:28Z")

</div>

I current use the script console to test a REST wrapper implemented in Ignition using the system.net.httpclient.

Since upgrading from 8.0.7 to 8.0.11 (and subsequently 8.0.12) trying to create the httpclient fails inside the script console.

```auto
# Create the JythonHttpClient
client = system.net.httpClient()

>>> 
Java Traceback:
Traceback (most recent call last):
  File "<input>", line 2, in <module>
	at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpClient(AbstractNetUtilities.java:498)

	at jdk.internal.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)

	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

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

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class com.inductiveautomation.ignition.common.script.PyArgParser

	at org.python.core.Py.JavaError(Py.java:552)

	at org.python.core.Py.JavaError(Py.java:543)

	at org.python.core.PyReflectedFunction. __call__ (PyReflectedFunction.java:190)

	at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction. __call__ (ScriptManager.java:521)

	at org.python.core.PyObject. __call__ (PyObject.java:464)

	at org.python.core.PyObject. __call__ (PyObject.java:468)

	at org.python.pycode._pyx777.f$0(<input>:2)

	at org.python.pycode._pyx777.call_function(<input>)

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

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

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

	at org.python.core.Py.exec(Py.java:1658)

	at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:276)

	at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:131)

	at com.inductiveautomation.ignition.designer.gui.tools.jythonconsole.JythonConsole$ConsoleWorker.doInBackground(JythonConsole.java:605)

	at com.inductiveautomation.ignition.designer.gui.tools.jythonconsole.JythonConsole$ConsoleWorker.doInBackground(JythonConsole.java:593)

	at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)

	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

	at java.desktop/javax.swing.SwingWorker.run(Unknown Source)

	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

	at java.base/java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.inductiveautomation.ignition.common.script.PyArgParser

	at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpClient(AbstractNetUtilities.java:498)

	at jdk.internal.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)

	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

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

	at org.python.core.PyReflectedFunction. __call__ (PyReflectedFunction.java:188)

	... 19 more

Traceback (most recent call last):
  File "<input>", line 2, in <module>
	at com.inductiveautomation.ignition.common.script.builtin.AbstractNetUtilities.httpClient(AbstractNetUtilities.java:498)

	at jdk.internal.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)

	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

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

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class com.inductiveautomation.ignition.common.script.PyArgParser
>>> 

```

Edit:  
Followed advice from [System.gui.transform error](http://forum.inductiveautomation.com/t/system-gui-transform-error/34253) and reinstalled designer. It seems to have fixed it.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 12, 2021, 6:41pm UTC](https://forum.inductiveautomation.com/t/system-net-httpclient-no-longer-working-in-script-console/34322/2 "2021-07-12T18:41:35Z")

</div>

Split this topic on July 12, 2021, 6:41pm UTC

3 posts were split to a new topic: [system.net.httpClient issue on particular machine](https://forum.inductiveautomation.com/t/system-net-httpclient-issue-on-particular-machine/48748)
