# Timeout error occurs when executing a python script in the automation rule

**URL:** <https://forum.seatable.com/t/timeout-error-occurs-when-executing-a-python-script-in-the-automation-rule/5015>\
**Category:** Scripts (Python and JS)\
**Tags:** bug\
**Created:** [August 19, 2024, 12:22am UTC](https://forum.seatable.com/t/timeout-error-occurs-when-executing-a-python-script-in-the-automation-rule/5015 "2024-08-19T00:22:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DAMON](https://forum.seatable.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@DAMON](https://forum.seatable.com/u/DAMON)\
**Post date:** [August 19, 2024, 12:22am UTC](https://forum.seatable.com/t/timeout-error-occurs-when-executing-a-python-script-in-the-automation-rule/5015/1 "2024-08-19T00:22:20Z")

</div>

## Your Setup:

- SeaTable Edition (Developer or Enterprise)  
**Enterprise**
- SeaTable Version (only necessary for self-hosted):  
You can find your SeaTable Server version at `https://your-server-url/server-info`  
**4.4.9**

## Describe the Problem/Error/Question:

Please describe your issue as precise as possible. If helpful, you can also provide:

- API endpoints you used
- Commands you executed (remove credentials)
- Screenshots
- Diagrams with [Excalidraw](https://excalidraw.com/)

## Error Messages:

If there are any error messages shown in the console or in the logs, please include them for better readability by wrapping them in a code block.

```auto
Script running for too long time!

```

Hello, SeaTable!

I tried to apply the functionality from Christoph’s tutorial on the Seatable Forum about getting an email address from a user column to an automation rule.  
[https://forum2.seatable.io/t/tutorial-get-email-address-from-creator-collaborator-last-modifier-column/1610](https://forum2.seatable.io/t/tutorial-get-email-address-from-creator-collaborator-last-modifier-column/1610)

When I run the Python script manually, it executes and completes within a second without any issues. However, when I configure it to run as an automation rule triggered by a row modification, a timeout occurs, and the script fails to execute.  
Is there a solution to this problem?

logs

 ![image](https://forum.seatable.com/uploads/default/original/2X/3/31c947e040ae450b8281680c96b30c77be83bb16.png)

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [August 19, 2024, 10:33am UTC](https://forum.seatable.com/t/timeout-error-occurs-when-executing-a-python-script-in-the-automation-rule/5015/2 "2024-08-19T10:33:27Z")

</div>

Can you send the script (ideally embedded in a shortened and anonymised copy of the base) to [support@seatable.io](mailto:support@seatable.io) for analysis?

---

<div class="post-metadata">

**Author:** ![DAMON](https://forum.seatable.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@DAMON](https://forum.seatable.com/u/DAMON)\
**Post date:** [August 20, 2024, 4:31am UTC](https://forum.seatable.com/t/timeout-error-occurs-when-executing-a-python-script-in-the-automation-rule/5015/3 "2024-08-20T04:31:18Z")

</div>

Hello!

If you are referring to the Python source code, I used the same source code which is written by Christoph.

 ![image](https://forum.seatable.io/uploads/default/original/2X/5/565c8a7ee8b9d51391912b7f27478e6fe261ff0f.png)

---

<div class="post-metadata">

**Author:** ![cdb](https://forum.seatable.com/user_avatar/forum.seatable.com/cdb/32/7_2.png) [@cdb](https://forum.seatable.com/u/cdb)\
**Post date:** [August 29, 2024, 7:59pm UTC](https://forum.seatable.com/t/timeout-error-occurs-when-executing-a-python-script-in-the-automation-rule/5015/4 "2024-08-29T19:59:29Z")

</div>

Can you please check your automation trigger?  
I assume that you created an automation loop:

- the row is modified → automation is triggered
- the automation modifies the row → automation is triggered
- …

You see the point?  
Update your automation trigger to make sure that the automation only ran once.

 ![image](https://forum.seatable.io/uploads/default/original/2X/3/3386cfe6c3f7bc3fdfa0ee8125655f28a1a1b962.png)

Please report back, if this solved your problem.

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [September 4, 2024, 6:58am UTC](https://forum.seatable.com/t/timeout-error-occurs-when-executing-a-python-script-in-the-automation-rule/5015/5 "2024-09-04T06:58:21Z")

</div>

Closed on September 4, 2024, 6:58am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
