pipedream icon indicating copy to clipboard operation
pipedream copied to clipboard

[BUG] Python code action throws `Mysql2::Error: Data too long for column 'code' at row 1` error

Open vunguyenhung opened this issue 2 years ago • 3 comments

Describe the bug This is an edge case, a user reported that their Python action always throw the error Mysql2::Error: Data too long for column 'code' at row 1.

I can reproduce this issue by creating a Python code with 7000 lines image image

Additional context Reported by a user here: https://app.frontapp.com/open/cnv_noprsnb?key=9z8pGUkYEN3qXHTmdqkDydLTxa-1nB-w

vunguyenhung avatar Jul 24 '24 12:07 vunguyenhung

@dylburger Hey Dylan, this issue has one of our project stuck. Would be great if it could be addressed quickly. Thanks!

mindtheflo avatar Aug 15 '24 07:08 mindtheflo

Hey @parisetflorian, we don't plan to increase the size limit of code steps as doing this will bring consequences into the platform for such specific use case. We do plan on supporting custom actions in Python like in Node.js though so we'll offer a better way of reusing shared code and unlock more use cases than we currently do.

andrewjschuang avatar Aug 19 '24 18:08 andrewjschuang

Hi @andrewjschuang / @PipedreamHQ Team.

We hope you could revisit this issue allow us to run our codes in one single action steps.

We tried optimizing & shortening our codes lines but our methods are tightly coupled, the class methods depend on each other.

Therefore I believe we can't split the method into different actions as each action run in isolation.

PlatFlat avatar Nov 24 '25 17:11 PlatFlat