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.
It's probably a scope issue.
The script console runs at designer client scope, not gateway scope
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.