# Gateway Exception : Read Timed Out Caused By SocketTimeoutException

**URL:** <https://forum.inductiveautomation.com/t/gateway-exception-read-timed-out-caused-by-sockettimeoutexception/37352>\
**Category:** Ignition\
**Created:** [August 4, 2020, 1:18pm UTC](https://forum.inductiveautomation.com/t/gateway-exception-read-timed-out-caused-by-sockettimeoutexception/37352 "2020-08-04T13:18:40Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 8, 2020, 1:57pm UTC](https://forum.inductiveautomation.com/t/gateway-exception-read-timed-out-caused-by-sockettimeoutexception/37352/8 "2020-08-08T13:57:06Z")

</div>

There's no customization available for Ignition's built-in error popup, AFAIK. I recall scripts posted here on the forum to auto-close the popups, but I haven't used them. You can improve the behavior of scripts with consistent use of jython `try` ... `except` ... clauses, catching errors before they get to the built-in popup. Do note that jython needs two `except` clauses to catch both jython and java errors, like so:

> [@Catch IOException?](http://forum.inductiveautomation.com/t/catch-ioexception/18612/3):
>
> Consider using two except blocks, as jython’s standard Exception won’t catch pure java exceptions. Like so: import java.lang.Exception try: # something something something except Exception, e: # jython exception except java.lang.Exception, e: # java exception

---

_[View the full topic](https://forum.inductiveautomation.com/t/gateway-exception-read-timed-out-caused-by-sockettimeoutexception/37352)._
