# HttpGel connection timeout

**URL:** <https://forum.inductiveautomation.com/t/httpgel-connection-timeout/69671>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [February 10, 2023, 4:32am UTC](https://forum.inductiveautomation.com/t/httpgel-connection-timeout/69671 "2023-02-10T04:32:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vani161998](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@vani161998](https://forum.inductiveautomation.com/u/vani161998)\
**Post date:** [February 10, 2023, 4:32am UTC](https://forum.inductiveautomation.com/t/httpgel-connection-timeout/69671/1 "2023-02-10T04:32:13Z")

</div>

hello All,  
I am getting a data through API . It works fine when i run the script from script console.  
But when i run the same script from gateway timer i am getting IOerror: connect Time out error in logs.  
Does anyone have any idea how to resolve it.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [February 10, 2023, 4:52am UTC](https://forum.inductiveautomation.com/t/httpgel-connection-timeout/69671/2 "2023-02-10T04:52:32Z")

</div>

It's probably a scope issue.  
[https://docs.inductiveautomation.com/display/DOC81/Scripting+in+Ignition](https://docs.inductiveautomation.com/display/DOC81/Scripting+in+Ignition)

The script console runs at designer client scope, not gateway scope

---

<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:** [February 10, 2023, 12:29pm UTC](https://forum.inductiveautomation.com/t/httpgel-connection-timeout/69671/3 "2023-02-10T12:29:14Z")

</div>

> [@vani161998](#):
>
> IOerror: connect Time out error

That is purely a network problem. Indicating that your gateway's attempted traffic to the target website was blocked. Look at your firewalls and routers, and make sure your gateway is running with a user account that has network privileges.
